Click or drag to resize

BucketExtensionsViewQueryAsyncTKey, TValue Method (IBucket, String, String, ActionViewOptions)

Execute a view query.

Namespace:  Couchbase
Assembly:  Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntax
C#
public static Task<IViewResult<TKey, TValue>> ViewQueryAsync<TKey, TValue>(
	this IBucket bucket,
	string designDocument,
	string viewName,
	Action<ViewOptions> configureOptions
)

Parameters

bucket
Type: CouchbaseIBucket
to execute the query against.
designDocument
Type: SystemString
Design document name.
viewName
Type: SystemString
View name.
configureOptions
Type: SystemActionViewOptions
Action to configure the controlling query execution.

Type Parameters

TKey
Type of the key for each result row.
TValue
Type of the value for each result row.

Return Value

Type: TaskIViewResultTKey, TValue
An .

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