Freigeben über


PermissionProperties Konstruktoren

Definition

Überlädt

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

Initialisieren Sie eine neue instance von mit der PermissionProperties Berechtigung für Container.

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

Initialisieren Sie einen neuen instance des mit der PermissionProperties Berechtigung für Cosmos-Element.

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

Quelle:
PermissionProperties.cs

Initialisieren Sie eine neue instance von mit der PermissionProperties Berechtigung für 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)

Parameter

id
String

Die Berechtigungs-ID.

permissionMode
PermissionMode

Die PermissionMode.

container
Container

Das Container-Objekt.

resourcePartitionKey
Nullable<PartitionKey>

(Optional) Der Partitionsschlüsselwert für die Berechtigung im Azure Cosmos DB-Dienst.

Gilt für:

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

Quelle:
PermissionProperties.cs

Initialisieren Sie einen neuen instance des mit der PermissionProperties Berechtigung für Cosmos-Element.

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)

Parameter

id
String

Die Berechtigungs-ID.

permissionMode
PermissionMode

Die PermissionMode.

container
Container

Das Container-Objekt.

resourcePartitionKey
PartitionKey

Der PartitionKey der Ressource im Azure Cosmos-Dienst.

itemId
String

Die Cosmos-Element-ID

Gilt für: