MemcachedBucket UpsertAsync T  Method (IDocument T )Couchbase .NET SDK 2.1.0 Documentation
Inserts or replaces an existing JSON document into IBucket on a Couchbase Server as an asynchronous operation.

Namespace: Couchbase
Assembly: 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
)

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