Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Item property of the SPAlertCollection class gets the alert with the specified GUID from the collection.
[C#] In C#, this property is an indexer for the SPAlertCollection class.
Parameters
idAlert A GUID that identifies the item.
Property Value
A Microsoft.SharePoint.SPAlert object that represents the alert.
Example
The following code example iterates through all the alerts on a site for a specified user, generates an array to store the GUID of each alert, and then uses each GUID to display the frequency and event type for each alert.
This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security