IBucket.QueryAsync<T> Method (IViewQuery)Couchbase .NET SDK 2.0
Asynchronously Executes a View query and returns the result.

Namespace: Couchbase.Core
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
Task<IViewResult<T>> QueryAsync<T>(
	IViewQuery query
)

Parameters

query
Type: Couchbase.Views.IViewQuery
The IViewQuery used to generate the results.
Type Parameters
T
The Type to deserialze the results to. The dynamic Type works well.

Return Value

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