Table of Contents

Enum SecurityAction

Namespace
AsmResolver.PE.DotNet.Metadata.Tables
Assembly
AsmResolver.PE.dll

Provides members defining all possible flags that can be assigned to a security declaration attribute.

public enum SecurityAction : ushort

Fields

Assert = 3

Indicates 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.

Demand = 2

Indicates all callers higher in the call stack are required to have been granted the permission specified by the current permission object.

Deny = 4

Indicates the 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.

InheritanceDemand = 7

Indicates the derived class inheriting the class or overriding a method is required to have been granted the specified permission.

LinkDemand = 6

Indicates the immediate caller is required to have been granted the specified permission.

PermitOnly = 5

Indicatges only the resources specified by this permission object can be accessed, even if the code has been granted permission to access other resources.

RequestMinimum = 8

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

RequestOptional = 9

Indicates the 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.

RequestRefuse = 10

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