IBucket Query T  Method (String)Couchbase .NET SDK 2.0
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
IQueryResult<T> Query<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: IQueryResult T 
An instance of an object that implements the IQueryResult T  interface; the results of the query.
See Also