Encapsulates the app-defined content of a raw notification (a push notification that does not involve UI). Its contents can be used in an app's background task, if the app has that capability, or otherwise consumed by the app and acted on as needed.
public : sealed class RawNotification
public sealed class RawNotification
Public NotInheritable Class RawNotification
// This class does not provide a public constructor.
Windows 10 requirements
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced v1)
A RawNotification object is obtained through the TriggerDetails property.
A background task that is intended to run in response to a notification must be registered with a PushNotificationTrigger. If it is not registered, the task will not run when a raw notification is received. For more info, see Raw notification overview.
|Windows version||SDK version||Value added|
|ChannelId ChannelId ChannelId ChannelId ChannelId||
Gets the Channel ID of the raw notification.
|Content Content Content Content Content||
Gets the content of the raw notification as a string. This string specifies a background task associated with the app.
|Headers Headers Headers Headers Headers||
Gets the raw header content from the notification.