Partager via


TileUpdater.RemoveFromSchedule(ScheduledTileNotification) Méthode

Définition

Supprime une prochaine mise à jour de vignette de la planification.

public:
 virtual void RemoveFromSchedule(ScheduledTileNotification ^ scheduledTile) = RemoveFromSchedule;
void RemoveFromSchedule(ScheduledTileNotification const& scheduledTile);
public void RemoveFromSchedule(ScheduledTileNotification scheduledTile);
function removeFromSchedule(scheduledTile)
Public Sub RemoveFromSchedule (scheduledTile As ScheduledTileNotification)

Paramètres

scheduledTile
ScheduledTileNotification

Notification à supprimer de la planification.

Exemples

L’exemple suivant montre l’utilisation de la méthode RemoveFromSchedule.

var notifier = Notifications.TileUpdateManager.createTileUpdaterForApplication();
var scheduled = notifier.getScheduledTileNotifications();

for (var i = 0, len = scheduled.length; i < len; i++) {

    // The itemId value is the unique ScheduledTileNotification.Id assigned to the 
    // notification when it was created.
    if (scheduled[i].id === itemId) {
        notifier.removeFromSchedule(scheduled[i]);
    }
}

S’applique à

Voir aussi