Table of Contents

Class PartitionKeyDefinition

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

Specifies a partition key definition for a particular path in the Azure Cosmos DB service.

public sealed class PartitionKeyDefinition : JsonSerializable
Inheritance
PartitionKeyDefinition
Inherited Members
Extension Methods

Constructors

PartitionKeyDefinition()

public PartitionKeyDefinition()

Properties

Paths

Gets or sets the paths to be partitioned in the Azure Cosmos DB service.

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

Property Value

Collection<string>

The path to be partitioned.

Version

Gets or sets version of the partitioning scheme to be applied on the partition key

public PartitionKeyDefinitionVersion? Version { get; set; }

Property Value

PartitionKeyDefinitionVersion?

One of the values of the PartitionKeyDefinitionVersion enumeration.