Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class TransactionGetResult

The result of a Get or GetOptional operation an a transaction context."/>

Inheritance
object
TransactionGetResult
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Client.Transactions
Assembly: Couchbase.NetClient.dll
Syntax
public class TransactionGetResult

Fields

View Source

Empty

Placeholder for an empty result.

Declaration
public static readonly TransactionGetResult? Empty
Field Value
Type Description
TransactionGetResult

Properties

View Source

Cas

Gets the CAS value of the document for future mutations.

Declaration
public ulong Cas { get; }
Property Value
Type Description
ulong
View Source

Collection

Gets the collection the document belongs to.

Declaration
public ICouchbaseCollection Collection { get; }
Property Value
Type Description
ICouchbaseCollection
View Source

DocumentMetadata

Gets the document metadata.

Declaration
public DocumentMetadata? DocumentMetadata { get; }
Property Value
Type Description
DocumentMetadata
View Source

Id

Gets the ID of the document.

Declaration
public string Id { get; }
Property Value
Type Description
string

Methods

View Source

ContentAs<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.

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.