Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum System.​Security.​Permissions.​SecurityAction

Assembly: System.Runtime

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

Values

Demand
All callers higher in the call stack are required to have been granted the permission specified by the current permission object.
Assert
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 (see Using the Assert Method).
Deny
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 (see Using the Deny Method).
PermitOnly
Only the resources specified by this permission object can be accessed, even if the code has been granted permission to access other resources.
LinkDemand
The immediate caller is required to have been granted the specified permission. Do not use in the .NET Framework 4. For full trust, use <see cref="T:System.Security.SecurityCriticalAttribute" /> instead; for partial trust, use <see cref="F:System.Security.Permissions.SecurityAction.Demand" /> .
InheritanceDemand
The derived class inheriting the class or overriding a method is required to have been granted the specified permission.
RequestMinimum
The request for the minimum permissions required for code to run. This action can only be used within the scope of the assembly.
RequestOptional
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
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.