Sdílet prostřednictvím


PermissionProperties Constructors

Definition

Overloads

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

Initialize a new instance of the PermissionProperties with permission to Container.

PermissionProperties(String, PermissionMode, Container, PartitionKey, String)

Initialize a new instance of the PermissionProperties with permission to Cosmos item.

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

Source:
PermissionProperties.cs

Initialize a new instance of the PermissionProperties with permission to Container.

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

Parameters

id
String

The permission id.

permissionMode
PermissionMode

The PermissionMode.

container
Container

The Container object.

resourcePartitionKey
Nullable<PartitionKey>

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

Applies to

PermissionProperties(String, PermissionMode, Container, PartitionKey, String)

Source:
PermissionProperties.cs

Initialize a new instance of the PermissionProperties with permission to Cosmos item.

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

Parameters

id
String

The permission id.

permissionMode
PermissionMode

The PermissionMode.

container
Container

The Container object.

resourcePartitionKey
PartitionKey

The PartitionKey of the resource in the Azure Cosmos service.

itemId
String

The cosmos item id

Applies to