Couchbase .NET SDK | 3.7.2
Search Results for

    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.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Couchbase.Client.Transactions
    Assembly: Couchbase.NetClient.dll
    Syntax
    public class TransactionGetResult

    Fields

    | Edit this page View Source

    Empty

    Placeholder for an empty result.

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

    Properties

    | Edit this page View Source

    Cas

    Gets the CAS value of the document for future mutations.

    Declaration
    public ulong Cas { get; }
    Property Value
    Type Description
    ulong
    | Edit this page View Source

    Collection

    Gets the collection the document belongs to.

    Declaration
    public ICouchbaseCollection Collection { get; }
    Property Value
    Type Description
    ICouchbaseCollection
    | Edit this page View Source

    DocumentMetadata

    Gets the document metadata.

    Declaration
    public DocumentMetadata? DocumentMetadata { get; }
    Property Value
    Type Description
    DocumentMetadata
    | Edit this page View Source

    Id

    Gets the ID of the document.

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

    Methods

    | Edit this page 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.

    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.