SearchExecutor.ExecuteQuery method
Runs a query.
Namespace: Microsoft.SharePoint.Client.Search.Query
Assembly: Microsoft.SharePoint.Client.Search (in Microsoft.SharePoint.Client.Search.dll)
Syntax
'Declaration
Public Function ExecuteQuery ( _
query As Query _
) As ClientResult(Of ResultTableCollection)
'Usage
Dim instance As SearchExecutor
Dim query As Query
Dim returnValue As ClientResult(Of ResultTableCollection)
returnValue = instance.ExecuteQuery(query)
public ClientResult<ResultTableCollection> ExecuteQuery(
Query query
)
Parameters
query
Type: Microsoft.SharePoint.Client.Search.Query.QueryThe query to run.
Return value
Type: Microsoft.SharePoint.Client.ClientResult<ResultTableCollection>
The results of the query.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The query parameter is null . |