共用方式為


PermissionProperties Constructors

Definition

Overloads

PermissionProperties(String, PermissionMode, CosmosContainer, Nullable<PartitionKey>)

Initialize a new instance of the PermissionProperties with permssion to CosmosContainer.

PermissionProperties(String, PermissionMode, CosmosContainer, PartitionKey, String)

Initialize a new instance of the PermissionProperties with permssion to cosnmos item.

PermissionProperties(String, PermissionMode, CosmosContainer, Nullable<PartitionKey>)

Initialize a new instance of the PermissionProperties with permssion to CosmosContainer.

public PermissionProperties (string id, Azure.Cosmos.PermissionMode permissionMode, Azure.Cosmos.CosmosContainer container, Azure.Cosmos.PartitionKey? resourcePartitionKey = default);
new Azure.Cosmos.PermissionProperties : string * Azure.Cosmos.PermissionMode * Azure.Cosmos.CosmosContainer * Nullable<Azure.Cosmos.PartitionKey> -> Azure.Cosmos.PermissionProperties
Public Sub New (id As String, permissionMode As PermissionMode, container As CosmosContainer, Optional resourcePartitionKey As Nullable(Of PartitionKey) = Nothing)

Parameters

id
String

The permission id.

permissionMode
PermissionMode

The PermissionMode.

container
CosmosContainer

The CosmosContainer object.

resourcePartitionKey
Nullable<PartitionKey>

(Optional) The partition key value for the permission in the Azure Cosmos DB service. see PartitionKey

Applies to

PermissionProperties(String, PermissionMode, CosmosContainer, PartitionKey, String)

Initialize a new instance of the PermissionProperties with permssion to cosnmos item.

public PermissionProperties (string id, Azure.Cosmos.PermissionMode permissionMode, Azure.Cosmos.CosmosContainer container, Azure.Cosmos.PartitionKey resourcePartitionKey, string itemId);
new Azure.Cosmos.PermissionProperties : string * Azure.Cosmos.PermissionMode * Azure.Cosmos.CosmosContainer * Azure.Cosmos.PartitionKey * string -> Azure.Cosmos.PermissionProperties
Public Sub New (id As String, permissionMode As PermissionMode, container As CosmosContainer, resourcePartitionKey As PartitionKey, itemId As String)

Parameters

id
String

The permission id.

permissionMode
PermissionMode

The PermissionMode.

container
CosmosContainer

The CosmosContainer object.

resourcePartitionKey
PartitionKey

The PartitionKey of the resource in the Azure Cosmos service.

itemId
String

The cosmos item id

Applies to