Share via


PushNotificationReceivedEventArgs Class

Definition

Provides data for the PushReceived event.

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

Remarks

To ensure that the PushReceived event handler is called within the process of the running app, be sure to register the handler for this event before calling Register. Otherwise, a new process will be launched to handle the notification.

Properties

Payload

Gets the payload of the push notification that triggered the associated PushReceived event.

Methods

GetDeferral()

Informs the system that the app might continue to perform work after the PushReceived event handler returns.

Events

Canceled

Raised when the system is going to cancel the background task launched to handle the PushReceived event.

Applies to