 | BucketExtensionsViewQueryAsyncTKey, TValue Method (IBucket, String, String) |
Execute a view query.
Namespace:
Couchbase
Assembly:
Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntaxpublic static Task<IViewResult<TKey, TValue>> ViewQueryAsync<TKey, TValue>(
this IBucket bucket,
string designDocument,
string viewName
)
Parameters
- bucket
- Type: CouchbaseIBucket
to execute the query against. - designDocument
- Type: SystemString
Design document name. - viewName
- Type: SystemString
View name.
Type Parameters
- TKey
- Type of the key for each result row.
- TValue
- Type of the value for each result row.
Return Value
Type:
TaskIViewResultTKey,
TValueAn .
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IBucket. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also