Replaces a document if it exists, otherwise fails.
Namespace: Couchbase.CoreAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
SyntaxIDocumentResult<T> Replace<T>(
IDocument<T> document
)
IDocumentResult<T> Replace<T>(
IDocument<T> document
)
Function Replace(Of T) (
document As IDocument(Of T)
) As IDocumentResult(Of T)
Function Replace(Of T) (
document As IDocument(Of T)
) As IDocumentResult(Of T)
generic<typename T>
IDocumentResult<T>^ Replace(
IDocument<T>^ document
)
generic<typename T>
IDocumentResult<T>^ Replace(
IDocument<T>^ document
)
abstract Replace :
document : IDocument<'T> -> IDocumentResult<'T>
abstract Replace :
document : IDocument<'T> -> IDocumentResult<'T>
Parameters
- document
- Type: Couchbase.IDocument<T>
The IDocument<T> JSON document to add to the database.
Type Parameters- T
- The Type T value of the document to be inserted.
Return Value
Type:
IDocumentResult<T>An object implementing
IDocumentResult<T> with information regarding the operation.
See Also