AlertCollection Class

The AlertCollection class represents a collection of alerts in Microsoft Office SharePoint Portal Server 2003.

System.Object

   System.Collections.IEnumerable

      Microsoft.SharePoint.Portal.Alerts.AlertCollection

Public Methods

The following table shows the methods of the AlertCollection class and a brief description of each.

Name Description
ActivateAll Activates all the alerts in this collection.
ActivateSubscription(Int32) Activates the alert with the specified identifier.
CreateAlert(Microsoft.SharePoint.Portal.Alerts.AlertType) Creates an alert of the specified type and adds it to this collection.
CreateAlert(String) Creates an alert of the specified type and adds it to this collection.
CreateAlert Creates an empty alert and adds it to this collection.
DeactivateAll Deactivates all the alerts in this collection.
DeactivateSubscription(Int32) Deactivates the alert with the specified identifier.
DeleteAlert(Int32) Deletes the alert with the specified identifier.
DeleteAll Deletes all the alerts in this collection.
DeleteAllResults Deletes all results for alerts in this collection.
DeleteResults(Int32, System.DateTime) Deletes all results for the alert with the specified identifier that were created before the specified date and time.
DeleteResults(Int32, System.DateTime, System.DateTime) Deletes all results for the alert with the specified identifier that were generated between the specified dates and times.
DeleteResults(Microsoft.SharePoint.Portal.Alerts.Result[]) Deletes all results in the specified array.
DeleteResults(String, System.DateTime, System.DateTime) Deletes all results that were generated between the specified dates and times for the specified alert delivery channel.
DeleteResults(System.DateTime) Deletes all results that were created before the specified date and time for all alerts in this collection.
GetEnumerator Gets an enumerator that can iterate through items in this collection.
GetResultsDataSet(String) Reserved for internal use only.
GetResultsDataSet Reserved for internal use only.

Public Properties

The following table shows the properties of the AlertCollection class, the data type of each property, and a brief description of each.

Name Data type Description
Count Int32 Gets the number of items in this collection.
Item(Int32) Microsoft.SharePoint.Portal.Alerts.Alert Gets the item in this collection that is indexed by the specified integer.
Item(String) Microsoft.SharePoint.Portal.Alerts.Alert Gets the item in this collection that is indexed by the specified string.
Policy Microsoft.SharePoint.Portal.Alerts.UserPolicy Gets a UserPolicy object that represents the user policy, such as quotas, for user alerts on this portal site.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.

Requirements

Namespace: Microsoft.SharePoint.Portal.Alerts

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Security: Code Access Security