Click or drag to resize
IBucketReplaceT Method (IDocumentT)
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
)

Parameters

document
Type: CouchbaseIDocumentT
The IDocumentT JSON document to add to the database.

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