Inserts or replaces an existing document into Couchbase Server.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic Task<IOperationResult<T>> InsertAsync<T>(
string key,
T value
)
public Task<IOperationResult<T>> InsertAsync<T>(
string key,
T value
)
Public Function InsertAsync(Of T) (
key As String,
value As T
) As Task(Of IOperationResult(Of T))
Public Function InsertAsync(Of T) (
key As String,
value As T
) As Task(Of IOperationResult(Of T))
public:
generic<typename T>
virtual Task<IOperationResult<T>^>^ InsertAsync(
String^ key,
T value
) sealed
public:
generic<typename T>
virtual Task<IOperationResult<T>^>^ InsertAsync(
String^ key,
T value
) sealed
abstract InsertAsync :
key : string *
value : 'T -> Task<IOperationResult<'T>>
override InsertAsync :
key : string *
value : 'T -> Task<IOperationResult<'T>>
abstract InsertAsync :
key : string *
value : 'T -> Task<IOperationResult<'T>>
override 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.
Implements
IBucket.InsertAsync<T>(String, T)
See Also