PushNotificationReceivedEventArgs 类

定义

PushReceived 事件提供数据。

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
继承
Object Platform::Object IInspectable PushNotificationReceivedEventArgs
属性

注解

若要确保在正在运行的应用的进程中调用 PushReceived 事件处理程序,请确保在调用 Register 之前为此事件注册处理程序。 否则,将启动一个新进程来处理通知。

属性

Payload

获取触发关联 PushReceived 事件的推送通知的有效负载。

方法

GetDeferral()

通知系统, 在 PushReceived 事件处理程序返回后,应用可能会继续执行工作。

事件

Canceled

当系统要取消启动的后台任务以处理 PushReceived 事件时引发。

适用于