CorDeclSecurity Enumeration

 

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

typedef enum CorDeclSecurity {  
  
    dclActionMask               =   0x001f,  
    dclActionNil                =   0x0000,  
    dclRequest                  =   0x0001,  
    dclDemand                   =   0x0002,  
    dclAssert                   =   0x0003,  
    dclDeny                     =   0x0004,  
    dclPermitOnly               =   0x0005,  
    dclLinktimeCheck            =   0x0006,  
    dclInheritanceCheck         =   0x0007,  
    dclRequestMinimum           =   0x0008,  
    dclRequestOptional          =   0x0009,  
    dclRequestRefuse            =   0x000a,  
    dclPrejitGrant              =   0x000b,  
    dclPrejitDenied             =   0x000c,  
    dclNonCasDemand             =   0x000d,  
    dclNonCasLinkDemand         =   0x000e,  
    dclNonCasInheritance        =   0x000f,  
    dclLinkDemandChoice         =   0x0010,  
    dclInheritanceDemandChoice  =   0x0011,  
    dclDemandChoice             =   0x0012,  
    dclMaximumValue             =   0x0012  
  
} CorDeclSecurity;  

MemberDescription
dclActionMaskReserved.
dclActionNilReserved.
dclRequestReserved.
dclDemandAll callers higher in the call stack are required to have been granted the permission specified by the current permission object.
dclAssertThe 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
dclDenyThe ability to access the resource specified by the current permission object is denied to callers, even if they have been granted permission to access it.
dclPermitOnlyOnly the resources specified by this permission object can be accessed, even if the code has been granted permission to access other resources.
dclLinktimeCheckThe immediate caller is required to have been granted the specified permission for a given period of time.
dclInheritanceCheckThe derived class inheriting another class or overriding a method is required to have been granted the specified permission.
dclRequestMinimumThe caller can request for the minimum permissions required for code to run. This action can only be used within the scope of the assembly.
dclRequestOptionalThe caller can request for 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.
dclRequestRefuseThe caller's request for permissions that might be misused will not be granted. This action can only be used within the scope of the assembly.
dclPrejitGrantReserved.
dclPrejitDeniedReserved.
dclNonCasDemandReserved.
dclNonCasLinkDemandThe immediate caller is required to have been granted the specified permission.
dclNonCasInheritanceReserved.
dclLinkDemandChoiceReserved.
dclInheritanceDemandChoiceReserved.
dclDemandChoiceReserved.
dclMaximumValueReserved.

Platforms: See System Requirements.

Header: CorHdr.h

.NET Framework Versions: Available since 1.0

Metadata Enumerations

Show: