Gets a Task that can be awaited on for a given Key and value.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic Task<IOperationResult<T>> GetAsync<T>(
string key
)
public Task<IOperationResult<T>> GetAsync<T>(
string key
)
Public Function GetAsync(Of T) (
key As String
) As Task(Of IOperationResult(Of T))
Public Function GetAsync(Of T) (
key As String
) As Task(Of IOperationResult(Of T))
public:
generic<typename T>
virtual Task<IOperationResult<T>^>^ GetAsync(
String^ key
) sealed
public:
generic<typename T>
virtual Task<IOperationResult<T>^>^ GetAsync(
String^ key
) sealed
abstract GetAsync :
key : string -> Task<IOperationResult<'T>>
override GetAsync :
key : string -> Task<IOperationResult<'T>>
abstract GetAsync :
key : string -> Task<IOperationResult<'T>>
override GetAsync :
key : string -> Task<IOperationResult<'T>>
Parameters
- key
- Type: System.String
The unique Key to use to lookup the value.
Type Parameters- T
- The Type of the value object to be retrieved.
Return Value
Type:
Task<IOperationResult<T>>A Task that can be awaited on for it's
IOperationResult<T> value.
Implements
IBucket.GetAsync<T>(String)
See Also