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