RawNotification.ChannelId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.