IBucket.QueryAsync<T> Method (IQueryRequest)Couchbase .NET SDK 2.0
Asynchronously executes a N1QL statement or prepared statement via a IQueryRequest against the Couchbase Cluster.

Namespace: Couchbase.Core
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
Task<IQueryResult<T>> QueryAsync<T>(
	IQueryRequest queryRequest
)

Parameters

queryRequest
Type: Couchbase.N1QL.IQueryRequest
An IQueryRequest object that contains a statement or a prepared statement and the appropriate properties.
Type Parameters
T
The Type to deserialze the results to. The dynamic Type works well.

Return Value

Type: Task<IQueryResult<T>>
An instance of an object that implements the IQueryResult<T> interface; the results of the query.
See Also