Dela via


ContainerPartitionKey Constructors

Definition

Overloads

ContainerPartitionKey()

Initializes a new instance of the ContainerPartitionKey class.

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

Initializes a new instance of the ContainerPartitionKey class.

ContainerPartitionKey()

Initializes a new instance of the ContainerPartitionKey class.

public ContainerPartitionKey ();
Public Sub New ()

Applies to

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

Initializes a new instance of the ContainerPartitionKey class.

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

Parameters

paths
IList<String>

List of paths using which data within the container can be partitioned

kind
PartitionKind

Indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'

version
Nullable<Int32>

Indicates the version of the partition key definition

Applies to