Click or drag to resize
IBucketReplaceT Method (String, T, UInt64)
Replaces a document for a given key if it exists, otherwise fails.

Namespace: Couchbase.Core
Assembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
IOperationResult<T> Replace<T>(
	string key,
	T value,
	ulong cas
)

Parameters

key
Type: SystemString
The unique key for indexing.
value
Type: T
The value for the key.
cas
Type: SystemUInt64
The CAS (Check and Set) value for optimistic concurrency.

Type Parameters

T
The Type of the value to be inserted.

Return Value

Type: IOperationResultT
An object implementing the IOperationResultTinterface.
See Also