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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för