IBucket Replace T  Method (String, T)Couchbase .NET SDK 2.0
Replaces a document for a given key if it exists, otherwise fails.

Namespace: Couchbase.Core
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
IOperationResult<T> Replace<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.
See Also