Inserts or replaces an existing document into Couchbase Server.
Namespace: Couchbase.CoreAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
SyntaxTask<IOperationResult<T>> InsertAsync<T>(
string key,
T value
)
Task<IOperationResult<T>> InsertAsync<T>(
string key,
T value
)
Function InsertAsync(Of T) (
key As String,
value As T
) As Task(Of IOperationResult(Of T))
Function InsertAsync(Of T) (
key As String,
value As T
) As Task(Of IOperationResult(Of T))
generic<typename T>
Task<IOperationResult<T>^>^ InsertAsync(
String^ key,
T value
)
generic<typename T>
Task<IOperationResult<T>^>^ InsertAsync(
String^ key,
T value
)
abstract InsertAsync :
key : string *
value : 'T -> Task<IOperationResult<'T>>
abstract InsertAsync :
key : string *
value : 'T -> Task<IOperationResult<'T>>
Parameters
- key
- Type: System.String
- value
- Type: T
Type ParametersReturn Value
Type:
Task<IOperationResult<T>>A Task that can be awaited on for it's
IOperationResult<T> value.
See Also