Executes an ad-hoc N1QL query against a Couchbase Server.
Namespace: Couchbase.N1QLAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic Task<IQueryResult<T>> QueryAsync<T>(
Uri server,
string query
)
public Task<IQueryResult<T>> QueryAsync<T>(
Uri server,
string query
)
Public Function QueryAsync(Of T) (
server As Uri,
query As String
) As Task(Of IQueryResult(Of T))
Public Function QueryAsync(Of T) (
server As Uri,
query As String
) As Task(Of IQueryResult(Of T))
public:
generic<typename T>
virtual Task<IQueryResult<T>^>^ QueryAsync(
Uri^ server,
String^ query
) sealed
public:
generic<typename T>
virtual Task<IQueryResult<T>^>^ QueryAsync(
Uri^ server,
String^ query
) sealed
abstract QueryAsync :
server : Uri *
query : string -> Task<IQueryResult<'T>>
override QueryAsync :
server : Uri *
query : string -> Task<IQueryResult<'T>>
abstract QueryAsync :
server : Uri *
query : string -> Task<IQueryResult<'T>>
override QueryAsync :
server : Uri *
query : string -> Task<IQueryResult<'T>>
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