ContainerProperties.PartitionKeyDefinitionVersion Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the PartitionKeyDefinitionVersion
The partition key definition version 1 uses a hash function that computes hash based on the first 100 bytes of the partition key. This can cause conflicts for documents with partition keys greater than 100 bytes.
The partition key definition version 2 uses a hash function that computes hash based on the first 2 KB of the partition key.
[Newtonsoft.Json.JsonIgnore]
public Microsoft.Azure.Cosmos.PartitionKeyDefinitionVersion? PartitionKeyDefinitionVersion { get; set; }
[<Newtonsoft.Json.JsonIgnore>]
member this.PartitionKeyDefinitionVersion : Nullable<Microsoft.Azure.Cosmos.PartitionKeyDefinitionVersion> with get, set
Public Property PartitionKeyDefinitionVersion As Nullable(Of PartitionKeyDefinitionVersion)
Property Value
The Partition Key Definition Version of the container
- Attributes
-
Newtonsoft.Json.JsonIgnoreAttribute
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om