ToastNotificationActivatedEventArgs 类

定义

提供有关由于用户点击 Toast 通知正文或在 Toast 通知中执行操作而激活应用时发生的事件的信息。

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 Platform::Object IInspectable ToastNotificationActivatedEventArgs
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

ToastNotificationActivatedEventArgs 将传递给你为激活应用时发生的激活事件实现的事件处理程序,因为用户点击 Toast 通知的正文或在 Toast 通知中执行了操作。

版本历史记录

Windows 版本 SDK 版本 已添加值
1607 14393 用户

属性

Argument

获取应用在通过交互式 Toast 通知激活后可以检索的参数。

CurrentlyShownApplicationViewId

获取当前显示的应用视图的标识符。

Kind

获取为此事件激活应用的原因。

PreviousExecutionState

获取应用激活前的应用的执行状态,因为用户点击了 Toast 通知的正文或在 Toast 通知中执行了操作。

SplashScreen

获取初始屏幕对象,该对象提供有关从初始屏幕过渡到激活的应用的信息。

User

获取为其激活应用的用户。

UserInput

获取可用于从交互式 Toast 通知获取用户输入的一组值。

适用于

另请参阅