PushNotificationReceivedEventArgs Class
Definition
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 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
- 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. |