IBucketReplaceT Method (IDocumentT) |
Replaces a document if it exists, otherwise fails.
Namespace: Couchbase.CoreAssembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxIDocumentResult<T> Replace<T>(
IDocument<T> document
)
Function Replace(Of T) (
document As IDocument(Of T)
) As IDocumentResult(Of T)
generic<typename T>
IDocumentResult<T>^ Replace(
IDocument<T>^ document
)
abstract Replace :
document : IDocument<'T> -> IDocumentResult<'T>
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:
IDocumentResultTAn object implementing
IDocumentResultT with information regarding the operation.
See Also