Executes a View query and returns the result.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 0.0.0.0 (0.0.0.0)
Syntaxpublic IViewResult<T> Query<T>(
IViewQueryable query
)
public IViewResult<T> Query<T>(
IViewQueryable query
)
Public Function Query(Of T) (
query As IViewQueryable
) As IViewResult(Of T)
Public Function Query(Of T) (
query As IViewQueryable
) As IViewResult(Of T)
public:
generic<typename T>
virtual IViewResult<T>^ Query(
IViewQueryable^ query
) sealed
public:
generic<typename T>
virtual IViewResult<T>^ Query(
IViewQueryable^ query
) sealed
abstract Query :
query : IViewQueryable -> IViewResult<'T>
override Query :
query : IViewQueryable -> IViewResult<'T>
abstract Query :
query : IViewQueryable -> IViewResult<'T>
override Query :
query : IViewQueryable -> IViewResult<'T>
Parameters
- query
- Type: Couchbase.Views.IViewQueryable
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>(IViewQueryable)
RemarksUse one of the IBucket.CreateQuery overloads to generate the query.
See Also