Compartilhar via


ToastNotifier.GetScheduledToastNotifications Método

Definição

Obtém a coleção de objetos ScheduledToastNotification que este aplicativo agendou para exibição.

Importante

Esse método só tem suporte em aplicativos que usam o WinRT como sua estrutura de aplicativo padrão.

public:
 virtual IVectorView<ScheduledToastNotification ^> ^ GetScheduledToastNotifications() = GetScheduledToastNotifications;
IVectorView<ScheduledToastNotification> GetScheduledToastNotifications();
public IReadOnlyList<ScheduledToastNotification> GetScheduledToastNotifications();
function getScheduledToastNotifications()
Public Function GetScheduledToastNotifications () As IReadOnlyList(Of ScheduledToastNotification)

Retornos

A coleção de notificações agendadas do sistema que o aplicativo vinculou a esse notificador agendou para exibição cronometrada.

Exemplos

O exemplo a seguir mostra o uso do método GetScheduledToastNotifications.

var notifier = Notifications.ToastNotificationManager.createToastNotifier();
var scheduled = notifier.getScheduledToastNotifications();                    

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