QueryProvider Class
The QueryProvider class executes a specified query against the search server.
System.Object
Microsoft.SharePoint.Portal.Search.QueryProvider
Public Constructors
The following table shows the constructors of the QueryProvider class and a brief description of each.
| Name | Description |
|---|---|
| QueryProvider | Initializes a new instance of the QueryProvider class with the specified portal site name. |
Public Methods
The following table shows the methods of the QueryProvider class and a brief description of each.
| Name | Description |
|---|---|
| CatalogNames(String, Int64) | Gets an array of content index names associated with the specified portal site. |
| Execute(String) | Executes the specified query string. |
| Execute(String, Boolean, String) | Executes the specified query string. |
| RebuildCatalogList | Builds a list of search content indexes for the specified portal site. |
| Scopes | Returns an array of search scopes defined for the search server. |
| SetProperty(String, String) | Sets the specified query property with the specified value. |
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.Search
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security