PushNotificationChannel 클래스

정의

푸시 알림에 대한 배달 차량 및 주소 지정 메커니즘을 나타냅니다.

이 인터페이스가 나타내는 채널 URI(Uniform Resource Identifier)는 타사 애플리케이션 서버에서 WNS(Windows 푸시 알림 서비스)와 통신하는 데 사용됩니다. 푸시 알림 채널은 클라이언트에서 알림을 가로채는 데 사용됩니다.

public ref class PushNotificationChannel sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class PushNotificationChannel final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PushNotificationChannel final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class PushNotificationChannel
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PushNotificationChannel
Public NotInheritable Class PushNotificationChannel
상속
Object Platform::Object IInspectable PushNotificationChannel
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)
앱 기능
internetClient

설명

이 개체는 CreatePushNotificationChannelForApplicationAsync 메서드를 통해 반환되는 IAsyncOperation 인터페이스의 instance 통해 반환됩니다. 비동기 작업이 성공적으로 완료되면 Then 또는 done 메서드를 통해 PushNotificationChannel 개체를 반환합니다.

속성

ExpirationTime

채널이 만료되는 시간을 가져옵니다. 이 시간 이후에 이 채널로 전송된 알림은 거부됩니다.

Uri

앱 서버가 이 채널에 바인딩된 애플리케이션 또는 보조 타일용 푸시 알림을 보내는 URI(Uniform Resource Identifier)를 가져옵니다. 이 URI(Uniform Resource Identifier)는 타사 앱 서버로 전송되고 저장됩니다.

메서드

Close()

이 채널을 명시적으로 무효화합니다. 이 메서드가 호출된 후 이 채널로 푸시된 모든 알림은 배달되지 않습니다.

이벤트

PushNotificationReceived

푸시 알림이 이 채널에 도착하면 발생합니다.

적용 대상

추가 정보