QueryClient.QueryAsync<T> Method (Uri, String)Couchbase .NET SDK 2.0
Executes an ad-hoc N1QL query against a Couchbase Server.

Namespace: Couchbase.N1QL
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public Task<IQueryResult<T>> QueryAsync<T>(
	Uri server,
	string query
)

Parameters

server
Type: System.Uri
The Uri of the server.
query
Type: System.String
A string containing a N1QL query.
Type Parameters
T
The Type to cast the resulting rows to.

Return Value

Type: Task<IQueryResult<T>>
An IQueryResult<T> implementation representing the results of the query.

Implements

IQueryClient.QueryAsync<T>(Uri, String)
See Also