Freigeben über


ContainerPartitionKey Konstruktoren

Definition

Überlädt

ContainerPartitionKey()

Initialisiert eine neue instance der ContainerPartitionKey-Klasse.

ContainerPartitionKey(IList<String>, String, Nullable<Int32>, Nullable<Boolean>)

Initialisiert eine neue instance der ContainerPartitionKey-Klasse.

ContainerPartitionKey()

Initialisiert eine neue instance der ContainerPartitionKey-Klasse.

public ContainerPartitionKey ();
Public Sub New ()

Gilt für:

ContainerPartitionKey(IList<String>, String, Nullable<Int32>, Nullable<Boolean>)

Initialisiert eine neue instance der ContainerPartitionKey-Klasse.

public ContainerPartitionKey (System.Collections.Generic.IList<string> paths = default, string kind = default, int? version = default, bool? systemKey = default);
new Microsoft.Azure.Management.CosmosDB.Models.ContainerPartitionKey : System.Collections.Generic.IList<string> * string * Nullable<int> * Nullable<bool> -> Microsoft.Azure.Management.CosmosDB.Models.ContainerPartitionKey
Public Sub New (Optional paths As IList(Of String) = Nothing, Optional kind As String = Nothing, Optional version As Nullable(Of Integer) = Nothing, Optional systemKey As Nullable(Of Boolean) = Nothing)

Parameter

paths
IList<String>

Liste der Pfade, mit denen Daten innerhalb des Containers partitioniert werden können

kind
String

Gibt die Art des Algorithmus an, der für die Partitionierung verwendet wird. Für MultiHash werden mehrere Partitionsschlüssel (bis zu drei maximal) für die Containererstellung unterstützt. Mögliche Werte: "Hash", "Range", "MultiHash"

version
Nullable<Int32>

Gibt die Version der Partitionsschlüsseldefinition an.

systemKey
Nullable<Boolean>

Gibt an, ob der Container einen vom System generierten Partitionsschlüssel verwendet.

Gilt für: