IQueryClient Query T  Method 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.1.0 (2.0.1.0)
Syntax
IQueryResult<T> Query<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: IQueryResult T 
An IQueryResult T  implementation representing the results of the query.
See Also