TileUpdater.Update(TileNotification) Метод

Определение

Применяет изменение содержимого или внешнего вида к плитке.

public:
 virtual void Update(TileNotification ^ notification) = Update;
void Update(TileNotification const& notification);
public void Update(TileNotification notification);
function update(notification)
Public Sub Update (notification As TileNotification)

Параметры

notification
TileNotification

Объект , предоставляющий новое определение XML для содержимого плитки.

Примеры

В следующем примере показано обновление, используемое для отправки уведомления на плитку приложения.

```csharp
var tileXml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileWide310x150Text03);
var tileAttributes = tileXml.GetElementsByTagName("text");
tileAttributes[0].AppendChild(tileXml.CreateTextNode("Hello World!"));

var tileNotification = new TileNotification(tileXml);
TileUpdateManager.CreateTileUpdaterForApplication().Update(tileNotification);
```

Применяется к

См. также раздел