SPAlert.Status Property
Gets or sets the status of the alert.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.