Click or drag to resize
IBucketReplaceT Method (IDocumentT, ReplicateTo, PersistTo)
Replaces a document if it exists, otherwise fails.

Namespace: Couchbase.Core
Assembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
IDocumentResult<T> Replace<T>(
	IDocument<T> document,
	ReplicateTo replicateTo,
	PersistTo persistTo
)

Parameters

document
Type: CouchbaseIDocumentT
The IDocumentT JSON document to add to the database.
replicateTo
Type: CouchbaseReplicateTo
The durability requirement for replication.
persistTo
Type: CouchbasePersistTo
The durability requirement for persistence.

Type Parameters

T
The Type T value of the document to be inserted.

Return Value

Type: IDocumentResultT
An object implementing IDocumentResultT with information regarding the operation.
See Also