Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

Query Class

Represents the base class for executing search queries by using the SharePoint Enterprise Search query object model, and defines the properties and methods that are shared by the FullTextSqlQuery and KeywordQuery classes.

Namespace:  Microsoft.Office.Server.Search.Query
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class Query : IDisposable

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

Instead, you should use the FullTextSqlQuery class for executing SQL syntax search queries, or the KeywordQuery class for executing keyword syntax or FAST Query Language (FQL) search queries.

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.