IViewQuery Key Method (Object, Boolean)Couchbase .NET SDK 2.0
Return only documents that match the specified key. Key must be specified as a JSON value.

Namespace: Couchbase.Views
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.2.0 (2.0.2.0)
Syntax
IViewQuery Key(
	Object key,
	bool encode
)

Parameters

key
Type: System Object
The key to retrieve
encode
Type: System Boolean
True to JSON encode the parameter.

Return Value

Type: IViewQuery
An IViewQuery object for chaining
See Also