다음을 통해 공유


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 이벤트를 처리하기 위해 시작된 백그라운드 작업을 취소할 때 발생합니다.

적용 대상