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)

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.

See also

Reference

SPAlert class

SPAlert members

Microsoft.SharePoint namespace