Share via


HashPartitionResolver.PartitionKeyPropertyName Property

Definition

Gets the name of the property in the document to execute the hashing on in the Azure Cosmos DB service.

public string PartitionKeyPropertyName { get; }
member this.PartitionKeyPropertyName : string
Public ReadOnly Property PartitionKeyPropertyName As String

Property Value

The name of the property in the document to execute the hashing on.

Remarks

HashPartitionResolver supports two modes - one using PartitionKeyPropertyName and the other using PartitionKeyExtractor. PartitionKeyPropertyName is extracted using Reflection, so use the C# property name, not the JSON representation.

Applies to