Freigeben über


IWithPartitionKey.WithPartitionKey Methode

Definition

Überlädt

WithPartitionKey(ContainerPartitionKey)

Gibt den Containerpartitionsschlüssel an.

WithPartitionKey(IList<String>, PartitionKind, Nullable<Int32>)

Gibt den Containerpartitionsschlüssel an.

WithPartitionKey(ContainerPartitionKey)

Gibt den Containerpartitionsschlüssel an.

public Microsoft.Azure.Management.CosmosDB.Fluent.GremlinGraph.Update.IUpdate WithPartitionKey (Microsoft.Azure.Management.CosmosDB.Fluent.Models.ContainerPartitionKey containerPartitionKey);
abstract member WithPartitionKey : Microsoft.Azure.Management.CosmosDB.Fluent.Models.ContainerPartitionKey -> Microsoft.Azure.Management.CosmosDB.Fluent.GremlinGraph.Update.IUpdate
Public Function WithPartitionKey (containerPartitionKey As ContainerPartitionKey) As IUpdate

Parameter

containerPartitionKey
ContainerPartitionKey

Das gesamte Objekt des Containerpartitionsschlüssels.

Gibt zurück

Die nächste Phase des Updates.

Gilt für:

WithPartitionKey(IList<String>, PartitionKind, Nullable<Int32>)

Gibt den Containerpartitionsschlüssel an.

public Microsoft.Azure.Management.CosmosDB.Fluent.GremlinGraph.Update.IUpdate WithPartitionKey (System.Collections.Generic.IList<string> paths, Microsoft.Azure.Management.CosmosDB.Fluent.Models.PartitionKind kind, int? version);
abstract member WithPartitionKey : System.Collections.Generic.IList<string> * Microsoft.Azure.Management.CosmosDB.Fluent.Models.PartitionKind * Nullable<int> -> Microsoft.Azure.Management.CosmosDB.Fluent.GremlinGraph.Update.IUpdate
Public Function WithPartitionKey (paths As IList(Of String), kind As PartitionKind, version As Nullable(Of Integer)) As IUpdate

Parameter

paths
IList<String>

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

kind
PartitionKind

Gibt die Art des Algorithmus an, der für die Partitionierung verwendet wird. Mögliche Werte: "Hash", "Range".

version
Nullable<Int32>

Gibt die Version der Partitionsschlüsseldefinition an.

Gibt zurück

Die nächste Phase des Updates.

Gilt für: