RawNotification.ChannelId 屬性

定義

取得原始通知的通道識別碼。

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

字串,其中包含應用程式定義的通道識別碼,由應用程式伺服器設定。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

這只適用于透過 CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync所建立的通道所傳送的通知。 如果通知是透過 使用 CreatePushNotificationChannelForApplicationAsync 建立的通道傳送,這會是 Null。

適用於