Inserts or replaces an existing JSON document into
IBucket on a Couchbase Server.
Namespace: Couchbase.CoreAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
SyntaxIDocumentResult<T> Upsert<T>(
IDocument<T> document
)
IDocumentResult<T> Upsert<T>(
IDocument<T> document
)
Function Upsert(Of T) (
document As IDocument(Of T)
) As IDocumentResult(Of T)
Function Upsert(Of T) (
document As IDocument(Of T)
) As IDocumentResult(Of T)
generic<typename T>
IDocumentResult<T>^ Upsert(
IDocument<T>^ document
)
generic<typename T>
IDocumentResult<T>^ Upsert(
IDocument<T>^ document
)
abstract Upsert :
document : IDocument<'T> -> IDocumentResult<'T>
abstract Upsert :
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 updated or inserted.
Return Value
Type:
IDocumentResult<T>An object implementing
IDocumentResult<T> with information regarding the operation.
See Also