共用方式為


ContainerProperties Constructors

Definition

Overloads

ContainerProperties()

Initializes a new instance of the ContainerProperties class for the Azure Cosmos DB service.

ContainerProperties(String, IReadOnlyList<String>)

Initializes a new instance of the ContainerProperties class for the Azure Cosmos DB service.

ContainerProperties(String, String)

Initializes a new instance of the ContainerProperties class for the Azure Cosmos DB service.

ContainerProperties()

Source:
ContainerProperties.cs

Initializes a new instance of the ContainerProperties class for the Azure Cosmos DB service.

public ContainerProperties ();
Public Sub New ()

Applies to

ContainerProperties(String, IReadOnlyList<String>)

Source:
ContainerProperties.cs

Initializes a new instance of the ContainerProperties class for the Azure Cosmos DB service.

public ContainerProperties (string id, System.Collections.Generic.IReadOnlyList<string> partitionKeyPaths);
new Microsoft.Azure.Cosmos.ContainerProperties : string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.Azure.Cosmos.ContainerProperties
Public Sub New (id As String, partitionKeyPaths As IReadOnlyList(Of String))

Parameters

id
String

The Id of the resource in the Azure Cosmos service.

partitionKeyPaths
IReadOnlyList<String>

The paths of the hierarchical partition keys. Example: ["/tenantId", "/userId"]

Applies to

ContainerProperties(String, String)

Source:
ContainerProperties.cs

Initializes a new instance of the ContainerProperties class for the Azure Cosmos DB service.

public ContainerProperties (string id, string partitionKeyPath);
new Microsoft.Azure.Cosmos.ContainerProperties : string * string -> Microsoft.Azure.Cosmos.ContainerProperties
Public Sub New (id As String, partitionKeyPath As String)

Parameters

id
String

The Id of the resource in the Azure Cosmos service.

partitionKeyPath
String

The path to the partition key. Example: /location

Applies to