This documentation is archived and is not being maintained.

SPAlertCollection Members

Windows SharePoint Services 3

Represents a collection of SPAlert objects. The SPAlertCollection is available as a property of either SPWeb or SPUser.

The SPAlertCollection type exposes the following members.

  NameDescription
Public property Count Gets the number of alerts in the collection. (Overrides SPBaseCollection.Count.)
Public property Item[Guid] Gets the alert with the specified GUID from the collection. In C#, this property is an indexer for the SPAlertCollection class.
Public property Item[Int32] Gets the alert at the specified index in the collection. In C#, this property is an indexer for the SPAlertCollection class.
Public property Site Gets the parent site collection for the collection. This property is deprecated.
Public property UpgradedPersistedProperties Gets the collection of field names and values for fields that were deleted or changed. (Inherited from SPAutoSerializingObject.)
Public property Web Gets the parent Web site of the collection. This property is deprecated.
Top

  NameDescription
Public method Add() Adds an alert to the collection of alerts for the specified title, list, event type bitmask, time interval, and filter.
Public method Add(SPList, SPEventType, SPAlertFrequency) Adds an alert to the collection of alerts for a list based on the specified event type and time interval. This method overload is deprecated.
Public method Add(SPListItem, SPEventType, SPAlertFrequency) Adds an alert to the collection of alerts for a list item based on the specified event type and time interval. This method overload is deprecated.
Public method Delete(Guid) Deletes the alert with the specified GUID from the collection.
Public method Delete(Int32) Deletes the alert at the specified index in the collection.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Retrieves the data required to serialize the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Public method GetUniqueUsers Returns a string array that lists all the users of a site, without listing them more than once, who receive alerts for list items.
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)
Top
Show: