Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class CollectionSpec

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

Constructors

View Source

CollectionSpec(string, string)

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

Properties

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?
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?
View Source

Name

The Collection name.

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

ScopeName

The Scope name.

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

Methods

View Source

Equals(CollectionSpec)

Declaration
public bool Equals(CollectionSpec other)
Parameters
Type Name Description
CollectionSpec other
Returns
Type Description
bool
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)
View Source

GetHashCode()

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

Operators

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
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>
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.