IBucket QueryAsync T  Method (String)Couchbase .NET SDK 2.0
Asynchronously executes a N1QL query 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>(
	string query
)

Parameters

query
Type: System String
An ad-hoc N1QL query.
Type Parameters
T
The Type to deserialze the results to. The dynamic Type works well.

Return Value

Type: Task IQueryResult T  
An awaitable Task TResult  with the T a IQueryResult T  instance.
Remarks
Note this implementation is uncommitted/experimental and subject to change in future release!
See Also