Share via


IWithPartitionKey.WithPartitionKey Methode

Definition

Überlädt

WithPartitionKey(ContainerPartitionKey)

Gibt den Containerpartitionsschlüssel an.

WithPartitionKey(PartitionKind, Nullable<Int32>)

Gibt den Containerpartitionsschlüssel an.

WithPartitionKey(ContainerPartitionKey)

Gibt den Containerpartitionsschlüssel an.

public Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.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.SqlContainer.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(PartitionKind, Nullable<Int32>)

Gibt den Containerpartitionsschlüssel an.

public Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.Update.IUpdate WithPartitionKey (Microsoft.Azure.Management.CosmosDB.Fluent.Models.PartitionKind kind, int? version);
abstract member WithPartitionKey : Microsoft.Azure.Management.CosmosDB.Fluent.Models.PartitionKind * Nullable<int> -> Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.Update.IUpdate
Public Function WithPartitionKey (kind As PartitionKind, version As Nullable(Of Integer)) As IUpdate

Parameter

kind
PartitionKind

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

version
Nullable<Int32>

Gibt die Version des Partitionsschlüsselupdates an.

Gibt zurück

Die nächste Phase des Updates.

Gilt für: