SPAlert.AlertType Property
Gets or sets the type of object to which the alert applies, which can be a list or document library, a list item or document, or a custom object.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Property AlertType As SPAlertType
Get
Set
'Usage
Dim instance As SPAlert
Dim value As SPAlertType
value = instance.AlertType
instance.AlertType = value
public SPAlertType AlertType { get; set; }
Property Value
Type: Microsoft.SharePoint.SPAlertType
An SPAlertType value that specifies the type of item to which the alert applies.
Remarks
The AlertType property is required for a new Alert object and does not contain a default value. This property cannot be changed after the Update method is called.