Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Class CollectionSpec

    Inheritance
    object
    CollectionSpec
    Implements
    IEquatable<CollectionSpec>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Couchbase.Management.Collections
    Assembly: Couchbase.NetClient.dll
    Syntax
    public class CollectionSpec : IEquatable<CollectionSpec>

    Constructors

    | Edit this page View Source

    CollectionSpec(string, string)

    Declaration
    public CollectionSpec(string scopeName, string name)
    Parameters
    Type Name Description
    string scopeName
    string name

    Properties

    | Edit this page View Source

    History

    Whether history retention override is enabled on this collection. If not set will default to bucket level setting.

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

    MaxExpiry

    MaxExpiry is the time in seconds for the TTL for new documents in the collection. It will be infinite if not set.

    Declaration
    [InterfaceStability(Level.Volatile)]
    public TimeSpan? MaxExpiry { get; set; }
    Property Value
    Type Description
    TimeSpan?
    | Edit this page View Source

    Name

    The Collection name.

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

    ScopeName

    The Scope name.

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

    Methods

    | Edit this page View Source

    Equals(CollectionSpec)

    Declaration
    public bool Equals(CollectionSpec other)
    Parameters
    Type Name Description
    CollectionSpec other
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    Operators

    | Edit this page View Source

    operator ==(CollectionSpec, CollectionSpec)

    Declaration
    public static bool operator ==(CollectionSpec left, CollectionSpec right)
    Parameters
    Type Name Description
    CollectionSpec left
    CollectionSpec right
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(CollectionSpec, CollectionSpec)

    Declaration
    public static bool operator !=(CollectionSpec left, CollectionSpec right)
    Parameters
    Type Name Description
    CollectionSpec left
    CollectionSpec right
    Returns
    Type Description
    bool

    Implements

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