Share via


Query Class

The base class for executing search queries using the Search query object model. Defines the properties and methods that are shared by the FullTextSqlQuery and KeywordQuery classes.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Search.Query.Query
    Microsoft.SharePoint.Search.Query.FullTextSqlQuery
    Microsoft.SharePoint.Search.Query.KeywordQuery

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

Syntax

Public MustInherit Class Query _
    Implements IDisposable

Dim instance As Query
public abstract class Query : IDisposable

Remarks

The Query class is not intended to be used directly from your code, but is designed to be the base implementation for the Search Query object model classes.

Instead, you should use the FullTextSqlQuery class for executing Windows SharePoint Services Search SQL Syntax search queries, or the KeywordQuery class for executing Windows SharePoint Services Search Keyword Syntax search queries.

For more information about the Search Query object model, see Windows SharePoint Services Search Query Object Model.

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

Query Members

Microsoft.SharePoint.Search.Query Namespace