ScheduledNotification.Content Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the text content of the notification that is displayed to the user when the notification is launched.
Namespace: Microsoft.Phone.Scheduler
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
Syntax
Public Overridable Property Content As String
public virtual string Content { get; set; }
<object Content="string" .../>
Property Value
Type: System..::.String
The text content of the notification.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The content string cannot be null. |
ArgumentOutOfRangeException | The content string cannot be zero length. The maximum length of the content string is 256 characters. The string can contain only printable ASCII characters (character values between 32 and 126). |
Remarks
The maximum length of the content string is 256 characters. The string can contain only printable ASCII characters (character values between 32 and 126).
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone