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 定义的 对象。

示例

以下示例演示用于将通知发送到应用的磁贴的 Update。

```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);
```

适用于

另请参阅