TileUpdater.RemoveFromSchedule(ScheduledTileNotification) TileUpdater.RemoveFromSchedule(ScheduledTileNotification) TileUpdater.RemoveFromSchedule(ScheduledTileNotification) TileUpdater.RemoveFromSchedule(ScheduledTileNotification) TileUpdater.RemoveFromSchedule(ScheduledTileNotification) Method

Definition

Removes an upcoming tile update from the schedule.

public : void RemoveFromSchedule(ScheduledTileNotification scheduledTile)
void RemoveFromSchedule(ScheduledTileNotification scheduledTile) const;
public void RemoveFromSchedule(ScheduledTileNotification scheduledTile)
Public Sub RemoveFromSchedule(scheduledTile As ScheduledTileNotification)
tileUpdater.removeFromSchedule(scheduledTile);

Parameters

scheduledTile
ScheduledTileNotification ScheduledTileNotification ScheduledTileNotification

The notification to remove from the schedule.

Examples

The following example shows the use of the RemoveFromSchedule method.


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]);
    }
}

See also