ViewQuery Key Method (Object, Boolean)Couchbase .NET SDK 2.1.0 Documentation
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.1.0.0 (2.1.0.0)
Syntax
public IViewQuery Key(
	Object key,
	bool encode
)

Parameters

key
Type: System Object
The key to retrieve
encode
Type: System Boolean
True to JSON encode and URI escape the value.

Return Value

Type: IViewQuery
An IViewQuery object for chaining

Implements

IViewQuery Key(Object, Boolean)
See Also