Jaa


RawNotification.ChannelId Property

Definition

Gets the Channel ID of the raw notification.

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

Property Value

String

Platform::String

winrt::hstring

A string that contains the app-defined Channel ID, as set by the app server.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

This is only valid for notifications sent over a channel created by CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync. If notification are sent over a channel created with CreatePushNotificationChannelForApplicationAsync, this will be null.

Applies to