GetTypeByContentClass(String) Method

The GetTypeByContentClass method of the AlertTypeCollection class gets the alert type implementation for an item in a search or alerts result set.


ContentClass String that contains the content class value from the full-text search properties schema. The URI of the content class property is "DAV:contentclass."

Return Value

Microsoft.SharePoint.Portal.Alerts.AlertType object that represents the alert type implementation that matches the specified content type.


The GetTypeByContentClass method matches the specified content description from the search service against its list of alert type implementations. This method is called by the search results and alert results Web Parts in the user interface (UI) to create "Alert Me" links for search results.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security