PermissionProperties Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- 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.
- resourcePartitionKey
- PartitionKey
The PartitionKey of the resource in the Azure Cosmos service.
- itemId
- String
The cosmos item id
Applies to
Azure SDK for .NET
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk