Executes a View query and returns the result.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic IViewResult<T> Query<T>(
IViewQuery query
)
public IViewResult<T> Query<T>(
IViewQuery query
)
Public Function Query(Of T) (
query As IViewQuery
) As IViewResult(Of T)
Public Function Query(Of T) (
query As IViewQuery
) As IViewResult(Of T)
public:
generic<typename T>
virtual IViewResult<T>^ Query(
IViewQuery^ query
) sealed
public:
generic<typename T>
virtual IViewResult<T>^ Query(
IViewQuery^ query
) sealed
abstract Query :
query : IViewQuery -> IViewResult<'T>
override Query :
query : IViewQuery -> IViewResult<'T>
abstract Query :
query : IViewQuery -> IViewResult<'T>
override Query :
query : IViewQuery -> IViewResult<'T>
Parameters
- query
- Type: Couchbase.Views.IViewQuery
The IViewQuery used to generate the results.
Type Parameters- T
- The Type to deserialze the results to. The dynamic Type works well.
Return Value
Type:
IViewResult<T>An instance of an object that implements the
IViewResult<T> Type with the results of the query.
Implements
IBucket.Query<T>(IViewQuery)
RemarksUse one of the IBucket.CreateQuery overloads to generate the query.
See Also