Share via


AppNotificationActivatedEventArgs Class

Definition

Represents event args associated with an app activation triggered by an app notification.

public ref class AppNotificationActivatedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AppNotifications.AppNotificationsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AppNotificationActivatedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AppNotifications.AppNotificationsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AppNotificationActivatedEventArgs
Public NotInheritable Class AppNotificationActivatedEventArgs
Inheritance
Object Platform::Object IInspectable AppNotificationActivatedEventArgs
Attributes

Remarks

To get an instance of this class, call Microsoft.Windows.AppLifecycle.AppInstance.GetActivatedEventArgs, check the Microsoft.Windows.AppLifecycle.AppActivationArguments.Kind property of the returned object for the value ExtendedActivationKind.AppNotification, then cast the Microsoft.Windows.AppLifecycle.AppActivationArguments.Data property to an AppNotificationActivatedEventArgs.

Properties

Argument

Gets the text provided in the arguments attribute of the action element associated with the app notification button input that triggered the app activation.

Arguments

Gets a dictionary of arguments set in the arguments attribute of the action element associated with the app notification button input that triggered the app activation.

UserInput

Gets a map of IDs and values of the input elements of an app notification.

Applies to