다음을 통해 공유


PushNotificationChannel 클래스

정의

푸시 알림 채널을 나타냅니다.

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

설명

CreateChannelAsync를 호출하고 앱에 대한 AAD(Azure Active Directory) 애플리케이션 ID를 전달하여 푸시 알림 채널을 요청합니다. 성공적으로 완료되면 Uri 속성 값을 클라우드 서비스에 전달합니다. 클라우드 서비스는 이 URI를 사용하여 WNS(Windows 푸시 알림 서비스)에 알림 요청을 보내 푸시 알림을 디바이스로 보내 도록 요청하고 PushReceived 이벤트를 호출합니다.

속성

ExpirationTime

CreateChannelAsync를 사용하여 새 채널을 요청해야 하는 푸시 알림 채널의 만료 시간을 가져옵니다.

Uri

푸시 알림 채널을 나타내는 URI를 가져옵니다.

메서드

Close()

[CreateChannelAsync](xref:Microsoft.Windows.PushNotifications.PushNotificationManager.CreateChannelAsync(System.Guid)를 사용하여 새 채널을 요청해야 하는 푸시 알림 채널을 닫습니다.

적용 대상