Share via


Notification.Critical Property

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
'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);
}
/** @property */
public boolean get_Critical ()

/** @property */
public void set_Critical (boolean value)
public function get Critical () : boolean

public function set Critical (value : boolean)
Not applicable.

Property Value

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.

Example

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;

Platforms

Windows Mobile for Pocket PC

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Notification Class
Notification Members
Microsoft.WindowsCE.Forms Namespace