Udostępnij za pośrednictwem


PermissionProperties Class

Definition

Represents a permission in the Azure Cosmos DB service.

public class PermissionProperties
type PermissionProperties = class
Public Class PermissionProperties
Inheritance
PermissionProperties

Constructors

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.

Properties

ETag

Gets the entity tag associated with the resource from the Azure Cosmos DB service.

Id

Gets the Id of the resource in the Azure Cosmos DB service.

LastModified

Gets the last modified time stamp associated with PermissionProperties from the Azure Cosmos DB service.

PermissionMode

Gets the permission mode in the Azure Cosmos DB service.

ResourcePartitionKey

Gets optional partition key value for the permission in the Azure Cosmos DB service. A permission applies to resources when two conditions are met: 1. ResourceUri is prefix of resource's link. For example "/dbs/mydatabase/colls/mycollection" applies to "/dbs/mydatabase/colls/mycollection" and "/dbs/mydatabase/colls/mycollection/docs/mydocument" 2. ResourcePartitionKey is superset of resource's partition key. For example absent/empty partition key is superset of all partition keys.

ResourceUri

Gets the self-uri of resource to which the permission applies in the Azure Cosmos DB service.

SelfLink

Gets the self-link associated with the resource from the Azure Cosmos DB service.

Token

Gets the access token granting the defined permission from the Azure Cosmos DB service.

Applies to