IBucketReplaceT Method (String, T, UInt64) |
Replaces a document for a given key if it exists, otherwise fails.
Namespace: Couchbase.CoreAssembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxIOperationResult<T> Replace<T>(
string key,
T value,
ulong cas
)
Function Replace(Of T) (
key As String,
value As T,
cas As ULong
) As IOperationResult(Of T)
generic<typename T>
IOperationResult<T>^ Replace(
String^ key,
T value,
unsigned long long cas
)
abstract Replace :
key : string *
value : 'T *
cas : uint64 -> IOperationResult<'T>
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:
IOperationResultTAn object implementing the
IOperationResultTinterface.
See Also