Notification.Critical Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets a value indicating whether the notification is of urgent importance.
Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)
Syntax
'Declaration
Public Property Critical As Boolean
Get
Set
'Usage
Dim instance As Notification
Dim value As Boolean
value = instance.Critical
instance.Critical = value
public bool Critical { get; set; }
public:
property bool Critical {
bool get ();
void set (bool value);
}
member Critical : bool with get, set
Property Value
Type: System.Boolean
true if the notification is critical; otherwise, false. The default is false.
Remarks
Critical notifications have a red background caption color, or other color, depending on the current Pocket PC theme.
Examples
The following code example creates a notification and sets this property to false. This code example is part of a larger example provided for the Notification class.
' If notification is urgent, set to true.
Notification1.Critical = False
// If notification is urgent, set to true.
notification1.Critical = false;
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0