Compartilhar via


TileUpdater.RemoveFromSchedule(ScheduledTileNotification) Método

Definição

Remove uma atualização de bloco futura do agendamento.

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)

Parâmetros

scheduledTile
ScheduledTileNotification

A notificação a ser removida do agendamento.

Exemplos

O exemplo a seguir mostra o uso do método 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]);
    }
}

Aplica-se a

Confira também