CouchbaseBucket.GetDocumentAsync<T> Method Couchbase .NET SDK 2.3.3
Gets a document by it's given id asynchronously.

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

Implements

IBucket.GetDocumentAsync<T>(String)
See Also