IBucket.Upsert<T> Method (IDictionary<String, T>, ParallelOptions)Couchbase .NET SDK 2.0
Inserts or replaces a range of items into Couchbase Server.

Namespace: Couchbase.Core
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
IDictionary<string, IOperationResult<T>> Upsert<T>(
	IDictionary<string, T> items,
	ParallelOptions options
)

Parameters

items
Type: System.Collections.Generic.IDictionary<String, T>
A IDictionary<TKey, TValue> of items to be stored in Couchbase.
options
Type: System.Threading.Tasks.ParallelOptions
A ParallelOptions instance with the options for the given operation.
Type Parameters
T
The Type of the value to be inserted.

Return Value

Type: IDictionary<String, IOperationResult<T>>
A IDictionary<TKey, TValue> of IOperationResult which for which each is the result of the individual operation.
Remarks
Remarks
Use the ParallelOptions parameter to control the level of parallelism to use and/or to associate a CancellationToken with the operation.
See Also