Executes a N1QL query against the Couchbase Cluster.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic IQueryResult<T> Query<T>(
string query
)
public IQueryResult<T> Query<T>(
string query
)
Public Function Query(Of T) (
query As String
) As IQueryResult(Of T)
Public Function Query(Of T) (
query As String
) As IQueryResult(Of T)
public:
generic<typename T>
virtual IQueryResult<T>^ Query(
String^ query
) sealed
public:
generic<typename T>
virtual IQueryResult<T>^ Query(
String^ query
) sealed
abstract Query :
query : string -> IQueryResult<'T>
override Query :
query : string -> IQueryResult<'T>
abstract Query :
query : string -> IQueryResult<'T>
override Query :
query : string -> IQueryResult<'T>
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.
Implements
IBucket.Query<T>(String)
See Also