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

Assembly: System.Runtime

Specifies access flags for the security permission object.

Values

NoFlags
No security access.
Assertion
Ability to assert that all this code's callers have the requisite permission for the operation.
UnmanagedCode
<para>Ability to call unmanaged code.</para> <para> Since unmanaged code potentially allows other permissions to be bypassed, this is a dangerous permission that should only be granted to highly trusted code. It is used for such applications as calling native code using PInvoke or using COM interop.</para>
SkipVerification
<para>Ability to skip verification of code in this assembly. Code that is unverifiable can be run if this permission is granted.</para> <para>This is a powerful permission that should be granted only to highly trusted code.</para> <para>This flag has no effect when used dynamically with stack modifiers such as <see cref="M:System.Security.CodeAccessPermission.Deny" />, <see cref="M:System.Security.CodeAccessPermission.Assert" />, and <see cref="M:System.Security.CodeAccessPermission.PermitOnly" />.</para>
Execution
<para>Permission for the code to run. Without this permission, managed code will not be executed.</para> <para>This flag has no effect when used dynamically with stack modifiers such as <see cref="M:System.Security.CodeAccessPermission.Deny" />, <see cref="M:System.Security.CodeAccessPermission.Assert" />, and <see cref="M:System.Security.CodeAccessPermission.PermitOnly" />.</para>
ControlThread
Ability to use certain advanced operations on threads.
ControlEvidence
<para>Ability to provide evidence, including the ability to alter the evidence provided by the common language runtime.</para> <para>This is a powerful permission that should only be granted to highly trusted code.</para>
ControlPolicy
<para>Ability to view and modify policy.</para> <para>This is a powerful permission that should only be granted to highly trusted code.</para>
SerializationFormatter
Ability to provide serialization services. Used by serialization formatters.
ControlDomainPolicy
Ability to specify domain policy.
ControlPrincipal
Ability to manipulate the principal object.
ControlAppDomain
Ability to create and manipulate an <see cref="T:System.AppDomain" /> .
RemotingConfiguration
Permission to configure Remoting types and channels.
Infrastructure
Permission to plug code into the common language runtime infrastructure, such as adding Remoting Context Sinks, Envoy Sinks and Dynamic Sinks.
BindingRedirects
Permission to perform explicit binding redirection in the application configuration file. This includes redirection of .NET assemblies that have been unified as well as other assemblies found outside .NET.
AllFlags
The unrestricted state of the permission.