SecurityPermissionFlag Enumeration
Specifies access flags for the security permission object.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.Security.PermissionsAssembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
| NoFlags | No security access. | |
| Assertion | Ability to assert that all this code's callers have the requisite permission for the operation. | |
| UnmanagedCode | Ability to call unmanaged code. 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. | |
| SkipVerification | Ability to skip verification of code in this assembly. Code that is unverifiable can be run if this permission is granted. This is a powerful permission that should be granted only to highly trusted code. This flag has no effect when used dynamically with stack modifiers such as Deny, Assert, and PermitOnly. | |
| Execution | Permission for the code to run. Without this permission, managed code will not be executed. This flag has no effect when used dynamically with stack modifiers such as Deny, Assert, and PermitOnly. | |
| ControlThread | Ability to use certain advanced operations on threads. | |
| ControlEvidence | Ability to provide evidence, including the ability to alter the evidence provided by the common language runtime. This is a powerful permission that should only be granted to highly trusted code. | |
| ControlPolicy | Ability to view and modify policy. This is a powerful permission that should only be granted to highly trusted code. | |
| 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 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 Framework assemblies that have been unified as well as other assemblies found outside the .NET Framework. | |
| AllFlags | The unrestricted state of the permission. |
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
This enumeration is used by SecurityPermission.
Caution |
|---|
Many of these flags are powerful and should only be granted to highly trusted code. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Caution