다음을 통해 공유


PushNotificationManager.CreateChannelAsync(Guid) 메서드

정의

WNS(Windows 푸시 알림 서비스)에서 푸시 채널을 비동기적으로 요청합니다.

참고

PushNotificationManager 클래스는 Singleton 패키지에 종속됩니다. 이러한 종속성 때문에 자체 포함 앱에서 이러한 API를 호출하는 경우 주의해야 할 특정 고려 사항이 있습니다. 자세한 정보 및 세부 정보는 추가 MSIX 패키지에 대한 종속성을 참조하세요.

public:
 virtual IAsyncOperationWithProgress<PushNotificationCreateChannelResult ^, PushNotificationCreateChannelStatus> ^ CreateChannelAsync(Platform::Guid remoteId) = CreateChannelAsync;
IAsyncOperationWithProgress<PushNotificationCreateChannelResult, PushNotificationCreateChannelStatus> CreateChannelAsync(winrt::guid const& remoteId);
public IAsyncOperationWithProgress<PushNotificationCreateChannelResult,PushNotificationCreateChannelStatus> CreateChannelAsync(Guid remoteId);
function createChannelAsync(remoteId)
Public Function CreateChannelAsync (remoteId As Guid) As IAsyncOperationWithProgress(Of PushNotificationCreateChannelResult, PushNotificationCreateChannelStatus)

매개 변수

remoteId
Guid

Platform::Guid

winrt::guid

만든 푸시 채널의 원격 식별자입니다. Azure AppId라고 하는 이 값은 AAD(Azure Active Directory)에 지정된 애플리케이션 ID와 일치하는 GUID입니다. 애플리케이션 ID를 가져오는 방법에 대한 자세한 내용은 포털을 사용하여 리소스에 액세스할 수 있는 Azure AD 애플리케이션 및 서비스 주체 만들기를 참조하세요.

반환

완료 시 PushNotificationCreateChannelResult 를 반환하는 진행률이 있는 비동기 작업입니다.

설명

대부분의 경우 채널 만들기 요청은 몇 초 안에 완료되어야 합니다. 이 작업은 네트워크 작업이므로 채널 요청 작업이 처음에는 실패할 수 있으며, 이는 플랫폼에 기본 제공된 재시도 논리를 트리거합니다. 이러한 경우 채널 요청 작업은 2~16분 정도 걸릴 수 있습니다.

적용 대상