Share via


TileUpdater.RemoveFromSchedule(ScheduledTileNotification) Method

Definition

Removes an upcoming tile update from the schedule.

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)

Parameters

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

Applies to

See also