Query class
SharePoint 2013
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.
System.Object
Microsoft.Office.Server.Search.Query.Query
Microsoft.Office.Server.Search.Query.KeywordQuery
Microsoft.Office.Server.Search.Query.Query
Microsoft.Office.Server.Search.Query.KeywordQuery
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
'Declaration <KnownTypeAttribute(GetType(KeywordQuery))> _ <DataContractAttribute(Namespace := "http://www.microsoft.com/sharepoint/search/KnownTypes/2008/08")> _ <SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _ <SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _ Public MustInherit Class Query _ Implements IDisposable 'Usage Dim instance As Query
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.