Table of Contents

Class PartitionKeyRange

Namespace
Microsoft.Azure.Documents
Assembly
Microsoft.Azure.Documents.Client.dll

Represents a partition key range in the Azure Cosmos DB service.

public sealed class PartitionKeyRange : Resource, IEquatable<PartitionKeyRange>
Inheritance
PartitionKeyRange
Implements
Inherited Members
Extension Methods

Constructors

PartitionKeyRange()

public PartitionKeyRange()

Properties

Parents

Contains ids or parent ranges in the Azure Cosmos DB service. For example if range with id '1' splits into '2' and '3', then Parents for ranges '2' and '3' will be ['1']. If range '3' splits into '4' and '5', then parents for ranges '4' and '5' will be ['1', '3'].

public Collection<string> Parents { get; set; }

Property Value

Collection<string>

Methods

Equals(PartitionKeyRange)

Determines whether this instance in the Azure Cosmos DB service and a specified PartitionKeyRange object have the same value.

public bool Equals(PartitionKeyRange other)

Parameters

other PartitionKeyRange

The PartitionKeyRange object to compare to this instance

Returns

bool

Equals(object)

Determines whether this instance in the Azure Cosmos DB service and a specified object have the same value.

public override bool Equals(object obj)

Parameters

obj object

The object to compare to this instance

Returns

bool

GetHashCode()

Returns the hash code for this instance in the Azure Cosmos DB service.

public override int GetHashCode()

Returns

int

A 32-bit signed integer hash code.