Editar

Compartir a través de


DeclarativeSecurityAction Enum

Definition

Specifies the security actions that can be performed using declarative security.

public enum class DeclarativeSecurityAction
public enum DeclarativeSecurityAction
type DeclarativeSecurityAction = 
Public Enum DeclarativeSecurityAction
Inheritance
DeclarativeSecurityAction

Fields

Name Value Description
None 0

No declarative security action.

Demand 2

Check that all callers in the call chain have been granted the specified permission.

Assert 3

The calling code can access the resource identified by the current permission object, even if callers higher in the stack have not been granted permission to access the resource.

Deny 4

Without further checks refuse Demand for the specified permission.

PermitOnly 5

Without further checks, refuse the demand for all permissions other than those specified.

LinkDemand 6

Check that the immediate caller has been granted the specified permission.

InheritanceDemand 7

The derived class inheriting the class or overriding a method is required to have the specified permission.

RequestMinimum 8

Request the minimum permissions required for code to run. This action can only be used within the scope of the assembly.

RequestOptional 9

Request additional permissions that are optional (not required to run). This request implicitly refuses all other permissions not specifically requested. This action can only be used within the scope of the assembly.

RequestRefuse 10

Request that permissions that might be misused not be granted to the calling code. This action can only be used within the scope of the assembly.

Applies to