SPAlert.Status property

Gets or sets the status of the alert.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Status As SPAlertStatus
    Get
    Set
'Usage
Dim instance As SPAlert
Dim value As SPAlertStatus

value = instance.Status

instance.Status = value
public SPAlertStatus Status { get; set; }

Property value

Type: Microsoft.SharePoint.SPAlertStatus
An SPAlertStatus value that specifies the status, which can be On, Off, or Error.

Remarks

The string displayed to the user for the error state is stored in the property bag under ErrorString. The error string does not need to be specified.

The default value for a new alert object is On.

See also

Reference

SPAlert class

SPAlert members

Microsoft.SharePoint namespace