SPAlertCollection.Add Method

Adds an alert to the collection of alerts for the specified title, list, event type bitmask, time interval, and filter.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Function Add As SPAlert
'Usage
Dim instance As SPAlertCollection
Dim returnValue As SPAlert

returnValue = instance.Add()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public SPAlert Add()

Return Value

Type: Microsoft.SharePoint.SPAlert
An SPAlert object representing the new alert.

See Also

Reference

SPAlertCollection Class

SPAlertCollection Members

Add Overload

Microsoft.SharePoint Namespace