IQueryClientQueryT Method |
Executes an ad-hoc N1QL query against a Couchbase Server.
Namespace: Couchbase.N1QLAssembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxIQueryResult<T> Query<T>(
Uri server,
string query
)
Function Query(Of T) (
server As Uri,
query As String
) As IQueryResult(Of T)
generic<typename T>
IQueryResult<T>^ Query(
Uri^ server,
String^ query
)
abstract Query :
server : Uri *
query : string -> IQueryResult<'T>
Parameters
- server
- Type: SystemUri
The Uri of the server. - query
- Type: SystemString
A string containing a N1QL query.
Type Parameters
- T
- The Type to cast the resulting rows to.
Return Value
Type:
IQueryResultTAn
IQueryResultT implementation representing the results of the query.
See Also