Gets a document by it's given id asynchronously.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 0.0.0.0 (0.0.0.0)
Syntaxpublic Task<IDocumentResult<T>> GetDocumentAsync<T>(
string id
)
public Task<IDocumentResult<T>> GetDocumentAsync<T>(
string id
)
Public Function GetDocumentAsync(Of T) (
id As String
) As Task(Of IDocumentResult(Of T))
Public Function GetDocumentAsync(Of T) (
id As String
) As Task(Of IDocumentResult(Of T))
public:
generic<typename T>
virtual Task<IDocumentResult<T>^>^ GetDocumentAsync(
String^ id
) sealed
public:
generic<typename T>
virtual Task<IDocumentResult<T>^>^ GetDocumentAsync(
String^ id
) sealed
abstract GetDocumentAsync :
id : string -> Task<IDocumentResult<'T>>
override GetDocumentAsync :
id : string -> Task<IDocumentResult<'T>>
abstract GetDocumentAsync :
id : string -> Task<IDocumentResult<'T>>
override GetDocumentAsync :
id : string -> Task<IDocumentResult<'T>>
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