CouchbaseBucket GetDocument T  Method Couchbase .NET SDK 2.0
Gets a document by it's given id.

Namespace: Couchbase
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax
public IDocumentResult<T> GetDocument<T>(
	string id
)

Parameters

id
Type: System String
The documents primary key.
Type Parameters
T
The type T to convert the value to.

Return Value

Type: IDocumentResult T 
An IResult T  object containing the document if it's found and any other operation specific info.

Implements

IBucket GetDocument T (String)
See Also