PushNotificationChannelManagerForUser.CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync 메서드

정의

오버로드

CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String)

WNS(Windows 푸시 알림 서비스)에서 푸시 알림 채널을 검색하는 지정된 앱에 바인딩된 개체를 만듭니다. 지정된 앱은 호출 앱과 동일한 패키지에 있어야 합니다.

CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String, String)

WNS(Windows 푸시 알림 서비스)에서 푸시 알림 채널을 검색하는 지정된 앱에 바인딩된 개체를 만듭니다. 지정된 앱은 호출 앱과 동일한 패키지에 있어야 합니다.

CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String)

WNS(Windows 푸시 알림 서비스)에서 푸시 알림 채널을 검색하는 지정된 앱에 바인딩된 개체를 만듭니다. 지정된 앱은 호출 앱과 동일한 패키지에 있어야 합니다.

public:
 virtual IAsyncOperation<PushNotificationChannel ^> ^ CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer ^ appServerKey, Platform::String ^ channelId) = CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync;
/// [Windows.Foundation.Metadata.Overload("CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PushNotificationChannel> CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer const& appServerKey, winrt::hstring const& channelId);
[Windows.Foundation.Metadata.Overload("CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PushNotificationChannel> CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer appServerKey, string channelId);
function createRawPushNotificationChannelWithAlternateKeyForApplicationAsync(appServerKey, channelId)
Public Function CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync (appServerKey As IBuffer, channelId As String) As IAsyncOperation(Of PushNotificationChannel)

매개 변수

appServerKey
IBuffer

ANSI X9.62 형식의 압축되지 않은 키입니다. 이 값은 보안 해시 표준 사양에 정의된 P-256 곡선에서 가져옵니다.

channelId
String

Platform::String

winrt::hstring

푸시 알림 채널의 ID입니다.

반환

appServerKey에 지정된 앱 서버에 바인딩된 개체로, WNS에서 PushNotificationChannel 을 요청하는 데 사용됩니다.

특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Creators Update (10.0.15063.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v4.0에서 도입되었습니다.)

설명

이 채널을 통해 전송된 모든 원시 알림에는 앱에 전달되기 전에 channelID가 연결됩니다. 이를 통해 앱은 여러 채널을 만들고 알림의 원본을 구분할 수 있습니다.

적용 대상

CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String, String)

WNS(Windows 푸시 알림 서비스)에서 푸시 알림 채널을 검색하는 지정된 앱에 바인딩된 개체를 만듭니다. 지정된 앱은 호출 앱과 동일한 패키지에 있어야 합니다.

public:
 virtual IAsyncOperation<PushNotificationChannel ^> ^ CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer ^ appServerKey, Platform::String ^ channelId, Platform::String ^ appId) = CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync;
/// [Windows.Foundation.Metadata.Overload("CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsyncWithId")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PushNotificationChannel> CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer const& appServerKey, winrt::hstring const& channelId, winrt::hstring const& appId);
[Windows.Foundation.Metadata.Overload("CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsyncWithId")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PushNotificationChannel> CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer appServerKey, string channelId, string appId);
function createRawPushNotificationChannelWithAlternateKeyForApplicationAsync(appServerKey, channelId, appId)
Public Function CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync (appServerKey As IBuffer, channelId As String, appId As String) As IAsyncOperation(Of PushNotificationChannel)

매개 변수

appServerKey
IBuffer

ANSI X9.62 형식의 압축되지 않은 키입니다. 이 값은 보안 해시 표준 사양에 정의된 P-256 곡선에서 가져옵니다.

channelId
String

Platform::String

winrt::hstring

푸시 알림 채널의 ID입니다.

appId
String

Platform::String

winrt::hstring

푸시 알림 채널에 바인딩할 앱의 PRAID(패키지 상대 애플리케이션 식별자)입니다. 지정된 앱은 호출 앱과 동일한 패키지에 있어야 합니다. PRAID에 대한 자세한 내용은 Application 요소의 Id 특성을 참조하세요.

기본 애플리케이션과 별도로 out-of-process COM 서버에서 백그라운드 작업을 호스팅하는 경우 자체 패키지 매니페스트에서 확장을 정의하는 애플리케이션의 PRAID에 대한 applicationId 인수로 전달합니다windows.backgroundTask.

반환

appServerKey에 지정된 앱 서버에 바인딩된 개체로, WNS에서 PushNotificationChannel 을 요청하는 데 사용됩니다.

특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Creators Update (10.0.15063.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v4.0에서 도입되었습니다.)

설명

이 채널을 통해 전송된 모든 원시 알림에는 앱에 전달되기 전에 channelID가 연결됩니다. 이를 통해 앱은 여러 채널을 만들고 알림의 원본을 구분할 수 있습니다.

참고

대부분의 애플리케이션(모든 타사 앱 포함)은 appID 매개 변수 없이 CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync 를 사용해야 합니다.

적용 대상