CouchbaseBucket.QueryAsync<T> Method (String)Couchbase .NET SDK 2.0
Asynchronously executes a N1QL query against the Couchbase Cluster.

Namespace: Couchbase
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public 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 instance of an object that implements the IQueryResult<T> interface; the results of the query.

Implements

IBucket.QueryAsync<T>(String)
Remarks
Note this implementation is uncommitted/experimental and subject to change in future release!
See Also