Skip to main content
RawNotification.Content | content property

Applies to Windows and Windows Phone

Gets the content of the raw notification as a string. This string specifies a background task associated with the app.

Syntax


var content = rawNotification.content;

public string Content { get; }

Public ReadOnly Property Content As String

public:
property String^ Content { 
   String^ get();
}

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

A string that contains the app-defined notification content, as set by the app server.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.PushNotifications
Windows::Networking::PushNotifications [C++]

Metadata

Windows.winmd

See also

RawNotification
Raw notifications sample
Raw notification overview
Guidelines and checklist for raw notifications
Quickstart: Creating and registering a raw notification background task
Quickstart: Intercepting push notifications for running apps