CouchbaseBucket Upsert T  Method (String, T)Couchbase .NET SDK 2.1.0 Documentation
Inserts or replaces an existing document into Couchbase Server.

Namespace: Couchbase
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.1.0.0 (2.1.0.0)
Syntax
public IOperationResult<T> Upsert<T>(
	string key,
	T value
)

Parameters

key
Type: System String
The unique key for indexing.
value
Type: T
The value for the key.
Type Parameters
T
The Type of the value to be inserted.

Return Value

Type: IOperationResult T 
An object implementing the IOperationResult T interface.

Implements

IBucket Upsert T (String, T)
See Also