Inserts or replaces an existing JSON document into
IBucket on a Couchbase Server as an asynchronous operation.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.1.0.0 (2.1.0.0)
Syntax public Task<IDocumentResult<T>> UpsertAsync<T>(
IDocument<T> document
)
public Task<IDocumentResult<T>> UpsertAsync<T>(
IDocument<T> document
)
Public Function UpsertAsync(Of T) (
document As IDocument(Of T)
) As Task(Of IDocumentResult(Of T))
Public Function UpsertAsync(Of T) (
document As IDocument(Of T)
) As Task(Of IDocumentResult(Of T))
public:
generic<typename T>
virtual Task<IDocumentResult<T>^>^ UpsertAsync(
IDocument<T>^ document
) sealed
public:
generic<typename T>
virtual Task<IDocumentResult<T>^>^ UpsertAsync(
IDocument<T>^ document
) sealed
abstract UpsertAsync :
document : IDocument<'T> -> Task<IDocumentResult<'T>>
override UpsertAsync :
document : IDocument<'T> -> Task<IDocumentResult<'T>>
abstract UpsertAsync :
document : IDocument<'T> -> Task<IDocumentResult<'T>>
override UpsertAsync :
document : IDocument<'T> -> Task<IDocumentResult<'T>>
Parameters
- document
- Type: Couchbase IDocument T
The IDocument T JSON document to add to the database.
Type Parameters - T
- The Type T value of the document to be updated or inserted.
Return Value
Type:
Task IDocumentResult T
The
Task TResult object representing the asynchronous operation.
Implements
IBucket UpsertAsync T (IDocument T )See Also