ToastNotificationActivatedEventArgs Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides information about an event that occurs when the app is activated because a user tapped on the body of a toast notification or performed an action inside a toast notification.
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
- Inheritance
- Attributes
- Implements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
ToastNotificationActivatedEventArgs is passed to the event handler that you implement for the activation event that occurs when the app is activated because a user tapped on the body of a toast notification or performed an action inside a toast notification.
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | User |
Argument |
Gets the arguments that the app can retrieve after it is activated through an interactive toast notification. |
Currently |
Gets the identifier for the currently shown app view. |
Kind |
Gets the reason for the activation of the app for this event. |
Previous |
Gets the execution state of the app before the app was activated because a user tapped on the body of a toast notification or performed an action inside a toast notification. |
Splash |
Gets the splash screen object that provides information about the transition from the splash screen to the activated app. |
User |
Gets the user the app was activated for. |
User |
Gets a set of values that you can use to obtain the user input from an interactive toast notification. |
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |