Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Class OperationSpec

    Represents a single operation within a multi-operation against a document using the SubDocument API.

    Inheritance
    object
    OperationSpec
    LookupInSpec
    MutateInSpec
    Implements
    IEqualityComparer
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Couchbase.Core.IO.Operations.SubDocument
    Assembly: Couchbase.NetClient.dll
    Syntax
    public abstract class OperationSpec : IEqualityComparer

    Properties

    | Edit this page View Source

    OpCode

    Gets or sets the OpCode for the SubDocument operation.

    Declaration
    public OpCode OpCode { get; }
    Property Value
    Type Description
    OpCode

    The op code.

    | Edit this page View Source

    Path

    Gets or sets the N1QL path within the document.

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

    The path.

    | Edit this page View Source

    PathFlags

    Gets or sets the path flags for the operation.

    Declaration
    public SubdocPathFlags PathFlags { get; }
    Property Value
    Type Description
    SubdocPathFlags

    The flags.

    | Edit this page View Source

    Value

    Gets or sets the value that will be written or received. This can be a JSON fragment or a scalar.

    Declaration
    public object? Value { get; }
    Property Value
    Type Description
    object

    The value.

    Methods

    | Edit this page View Source

    Equals(object?)

    Determines whether the specified OperationSpec, is equal to this instance. Only compares Path and OpCode!

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The OperationSpec to compare with this instance.

    Returns
    Type Description
    bool

    true if the specified OperationSpec is equal to this instance; otherwise, false.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    Equals(object?, object?)

    Determines whether the specified OperationSpec, is equal to this instance. Only compares Path and OpCode!

    Declaration
    public bool Equals(object? x, object? y)
    Parameters
    Type Name Description
    object x

    The OperationSpec to compare with this instance.

    object y

    The y.

    Returns
    Type Description
    bool

    true if the specified OperationSpec is equal to this instance; otherwise, false.

    | Edit this page View Source

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    object.GetHashCode()
    | Edit this page View Source

    GetHashCode(object)

    Returns a hash code for this instance.

    Declaration
    public int GetHashCode(object obj)
    Parameters
    Type Name Description
    object obj

    The object.

    Returns
    Type Description
    int

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    | Edit this page View Source

    ToString()

    Returns a string that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents this instance.

    Overrides
    object.ToString()

    Implements

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