Class TransactionGetResult
The result of a Get or GetOptional operation an a transaction context."/>
Inherited Members
Namespace: Couchbase.Integrated.Transactions
Assembly: Couchbase.NetClient.dll
Syntax
[InterfaceStability(Level.Volatile)]
public class TransactionGetResult
Fields
| Edit this page View SourceEmpty
Placeholder for an empty result.
Declaration
public static readonly TransactionGetResult? Empty
Field Value
Type | Description |
---|---|
TransactionGetResult |
Properties
| Edit this page View SourceCas
Gets the CAS value of the document for future mutations.
Declaration
public ulong Cas { get; }
Property Value
Type | Description |
---|---|
ulong |
Collection
Gets the collection the document belongs to.
Declaration
public ICouchbaseCollection Collection { get; }
Property Value
Type | Description |
---|---|
ICouchbaseCollection |
DocumentMetadata
Gets the document metadata.
Declaration
public DocumentMetadata? DocumentMetadata { get; }
Property Value
Type | Description |
---|---|
DocumentMetadata |
Id
Gets the ID of the document.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceContentAs<T>()
Deserialize the content of the document.
Declaration
public T? ContentAs<T>()
Returns
Type | Description |
---|---|
T | A deserialized instance, or null. |
Type Parameters
Name | Description |
---|---|
T | The type of document contained. |