QueryProvider Class

This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. The SharePoint Enterprise Search query object model is implemented in the Microsoft.Office.Server.Search.Query namespace.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Portal.Search.QueryProvider

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class QueryProvider
'Usage
Dim instance As QueryProvider
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class QueryProvider

Remarks

To execute SharePoint Enterprise Search queries, use the FullTextSqlQuery and KeywordQuery classes in the Microsoft.Office.Server.Search.Query namespace.

For more information about the new Query object model, see Enterprise Search Query Object Model Overview.

Thread Safety

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

See Also

Reference

QueryProvider Members

Microsoft.SharePoint.Portal.Search Namespace

Other Resources

Enterprise Search Architecture

Querying Enterprise Search