Query class
Represents the base class for executing search queries by using the SharePoint Server 2013 query object model, and defines the properties and methods that are used by the KeywordQuery class.
Inheritance hierarchy
System.Object
Microsoft.Office.Server.Search.Query.Query
Microsoft.Office.Server.Search.Query.KeywordQuery
Namespace: Microsoft.Office.Server.Search.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<KnownTypeAttribute(GetType(KeywordQuery))> _
<DataContractAttribute(Namespace := "https://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
[KnownTypeAttribute(typeof(KeywordQuery))]
[DataContractAttribute(Namespace = "https://www.microsoft.com/sharepoint/search/KnownTypes/2008/08")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
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 SharePoint Server 2013 Query object model classes.
Instead, you should use the KeywordQuery class to run keyword syntax or FAST Query Language (FQL) search queries.
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.