SearchAlertTemplate Class

The SearchAlertTemplate class represents the template for creating new alerts for search queries in SharePoint Portal Server.

System.Object

   Microsoft.SharePoint.Portal.Alerts.StandardAlertTemplate

      Microsoft.SharePoint.Portal.Alerts.SearchAlertTemplate

Public Constructors

The following table shows the constructors of the SearchAlertTemplate class and a brief description of each.

Name Description
SearchAlertTemplate(String, System.String) Initializes a new instance of the SearchAlertTemplate class with the specified SQL query WHERE clause and description.
SearchAlertTemplate(Microsoft.SharePoint.Portal.Alerts.Alert) Initializes a new instance of the SearchAlertTemplate class with the specified reference to an Alert object that represents an existing alert.

Protected Methods

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

Name Description
UpdateApplicationData Generates information needed to populate fields in this template and saves it to the database.
CreateQuery Reserved for internal use only.
GetAlertType Reserved for internal use only.

Protected Methods

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

Name Data Type Description
RankingEnabled Boolean Gets a flag that indicates whether alerts created from this template have ranking enabled.

Thread Safety

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

Remarks

Use this object to create new alerts for search queries in SharePoint Portal Server.

Requirements

Namespace: Microsoft.SharePoint.Portal.Alerts

Platforms: Windows Server 2003

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

Security: Code Access Security