SitePolicy Class
The SitePolicy class represents the alerts policy for a portal site.
System.Object
Microsoft.SharePoint.Portal.Alerts.SitePolicy
Public Methods
The following table shows the methods of the SitePolicy class and a brief description of each.
Name | Description |
---|---|
Commit | Commits site policy changes for this site. |
DeleteAllWaitingNotifications | Deletes all pending notifications in the notification queue for this portal site. |
Reload | Loads site policy settings from the database. |
Public Properties
The following table shows the properties of the SitePolicy class, the data type of each property, and a brief description of each.
Name | Data type | Description |
---|---|---|
BooleanAlertsCount | Int32 | Gets the number of Boolean alerts for this portal site. |
LockEmailAddress | Boolean | Gets a flag that indicates whether a user can change the e-mail address to which notifications are sent. |
MaxBooleanAlertsPerSite | Int32 | Gets or sets the maximum number of Boolean alerts that are allowed for this portal site. |
MaxBooleanAlertsPerUser | Int32 | Gets or sets the maximum number of Boolean alerts that are allowed for users on this portal site. |
MaxRankAlertsPerSite | Int32 | Gets or sets the maximum number of ranked alerts that are allowed for this portal site. |
MaxRankAlertsPerUser | Int32 | Gets the maximum number of results allowed for ranked alerts for users of this portal site. |
MaxResultsPerAlert | Int32 | Gets the maximum number of results allowed for alerts for this portal site. |
NotificationQueueSize | Int32 | Gets the number of notifications in the notification queue for this portal site. |
ProfileFieldToEmail | String | Gets the user profile field that contains the e-mail address that is displayed on the alert creation page. |
RankAlertsCount | Int32 | Gets the number of ranked alerts for 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.
Remarks
You must be logged on as an administrator or a member of the SharePoint administrators group to use this object.
Requirements
Namespace: Microsoft.SharePoint.Portal.Alerts
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security