ToastNotificationActivatedEventArgs クラス

定義

ユーザーがトースト通知の本文をタップしたか、トースト通知内でアクションを実行したためにアプリがアクティブ化されたときに発生するイベントに関する情報を提供します。

public ref class ToastNotificationActivatedEventArgs sealed : IToastNotificationActivatedEventArgs
public ref class ToastNotificationActivatedEventArgs sealed : IActivatedEventArgsWithUser, IToastNotificationActivatedEventArgs
public ref class ToastNotificationActivatedEventArgs sealed : IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ToastNotificationActivatedEventArgs final : IToastNotificationActivatedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ToastNotificationActivatedEventArgs final : IActivatedEventArgsWithUser, IToastNotificationActivatedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ToastNotificationActivatedEventArgs final : IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ToastNotificationActivatedEventArgs : IToastNotificationActivatedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ToastNotificationActivatedEventArgs : IActivatedEventArgsWithUser, IToastNotificationActivatedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ToastNotificationActivatedEventArgs : IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgs
Public NotInheritable Class ToastNotificationActivatedEventArgs
Implements IToastNotificationActivatedEventArgs
Public NotInheritable Class ToastNotificationActivatedEventArgs
Implements IActivatedEventArgsWithUser, IToastNotificationActivatedEventArgs
Public NotInheritable Class ToastNotificationActivatedEventArgs
Implements IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgs
継承
Object IInspectable ToastNotificationActivatedEventArgs
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

ToastNotificationActivatedEventArgs は、ユーザーがトースト通知の本文をタップしたか、トースト通知内でアクションを実行したためにアプリがアクティブ化されたときに発生するアクティブ化イベントに実装するイベント ハンドラーに渡されます。

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1607 14393 User

プロパティ

Argument

対話型トースト通知によってアクティブ化された後にアプリが取得できる引数を取得します。

CurrentlyShownApplicationViewId

現在表示されているアプリ ビューの識別子を取得します。

Kind

このイベントのアプリのアクティブ化の理由を取得します。

PreviousExecutionState

ユーザーがトースト通知の本文をタップしたか、トースト通知内でアクションを実行したため、アプリがアクティブ化される前のアプリの実行状態を取得します。

SplashScreen

スプラッシュ画面からアクティブ化されたアプリへの切り替えに関する情報を提供するスプラッシュスクリーン オブジェクトを取得します。

User

アプリがアクティブ化されたユーザーを取得します。

UserInput

対話型トースト通知からユーザー入力を取得するために使用できる値のセットを取得します。

適用対象

こちらもご覧ください