PushNotificationReceivedEventArgs 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 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
- 繼承
- 屬性
備註
若要確保在執行中應用程式的進程內呼叫 PushReceived 事件處理程式,請務必先註冊此事件的處理程式,再呼叫 Register。 否則,將會啟動新的程式來處理通知。
屬性
Payload |
取得觸發相關聯 PushReceived 事件的推播通知承載。 |
方法
GetDeferral() |
通知系統,在 PushReceived 事件處理程式傳回之後,應用程式可能會繼續執行工作。 |
事件
Canceled |
當系統要取消啟動的背景工作來處理 PushReceived 事件時引發。 |