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

Namespace: Couchbase.Core
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
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 IDocumentResult T  object containing the document if it's found and any other operation specific info.
See Also