Class TransactionGetResult
The result of a Get or GetOptional operation an a transaction context."/>
Inheritance
System.Object
TransactionGetResult
Namespace: Couchbase.Integrated.Transactions
Assembly: Couchbase.NetClient.dll
Syntax
public class TransactionGetResult : object
Fields
| Improve this Doc View SourceEmpty
Placeholder for an empty result.
Declaration
public static readonly TransactionGetResult Empty
Field Value
Type | Description |
---|---|
TransactionGetResult |
Properties
| Improve this Doc View SourceCas
Gets the CAS value of the document for future mutations.
Declaration
public ulong Cas { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
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 |
---|---|
System.String |
Methods
| Improve this Doc 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. |