共用方式為


ContainerPartitionKey Constructors

Definition

Overloads

ContainerPartitionKey()

Initializes a new instance of the ContainerPartitionKey class.

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

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>, String, Nullable<Int32>, Nullable<Boolean>)

Initializes a new instance of the ContainerPartitionKey class.

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)

Parameters

paths
IList<String>

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

kind
String

Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three maximum) are supported for container create. Possible values include: 'Hash', 'Range', 'MultiHash'

version
Nullable<Int32>

Indicates the version of the partition key definition

systemKey
Nullable<Boolean>

Indicates if the container is using a system generated partition key

Applies to