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 を示しています。

function sendTileTextNotification() {
    var Notifications = Windows.UI.Notifications;

    // Get an XML DOM version of a specific template by using getTemplateContent.
    var tileXml = Notifications.TileUpdateManager.getTemplateContent(Notifications.TileTemplateType.tileWide310x150Text03);

    // You will need to look at the template documentation to know how many text fields a particular template has.
    // Get the text attribute for this template and fill it in.
    var tileAttributes = tileXml.getElementsByTagName("text");
    tileAttributes[0].appendChild(tileXml.createTextNode("Hello World!"));

    // Create the notification from the XML.
    var tileNotification = new Notifications.TileNotification(tileXml);

    // Send the notification to the calling app's tile.
    Notifications.TileUpdateManager.createTileUpdaterForApplication().update(tileNotification);
}

適用対象

こちらもご覧ください