ToastNotifier.GetScheduledToastNotifications メソッド

定義

このアプリで表示がスケジュールされている ScheduledToastNotification オブジェクトのコレクションを取得します。

重要

このメソッドは、WinRT を既定のアプリケーション フレームワークとして使用するアプリケーションでのみサポートされます。

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

戻り値

アプリがこの通知にバインドされているスケジュールされたトースト通知のコレクションで、時間指定された表示がスケジュールされています。

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

適用対象