RawNotification.ChannelId プロパティ

定義

生の通知のチャネル ID を取得します。

public:
 property Platform::String ^ ChannelId { Platform::String ^ get(); };
winrt::hstring ChannelId();
public string ChannelId { get; }
var string = rawNotification.channelId;
Public ReadOnly Property ChannelId As String

プロパティ値

String

Platform::String

winrt::hstring

アプリ サーバーによって設定された、アプリ定義のチャネル ID を含む文字列。

Windows の要件

デバイス ファミリ
Windows 10 Creators Update (10.0.15063.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v4.0 で導入)

注釈

これは、 CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync によって作成されたチャネル経由で送信される通知に対してのみ有効です。 CreatePushNotificationChannelForApplicationAsync で作成されたチャネル経由で通知が送信された場合、これは null になります。

適用対象