Click or drag to resize
IBucketInsertT Method (String, T, ReplicateTo)
Inserts a document into the database for a given key, failing if it exists.

Namespace: Couchbase.Core
Assembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
IOperationResult<T> Insert<T>(
	string key,
	T value,
	ReplicateTo replicateTo
)

Parameters

key
Type: SystemString
The unique key for indexing.
value
Type: T
The value for the key.
replicateTo
Type: CouchbaseReplicateTo

Type Parameters

T
The Type of the value to be inserted.

Return Value

Type: IOperationResultT
An object implementing the IOperationResultTinterface.
See Also