System.Security.Permissions.SecurityPermissionFlag Enumeration

Specifies access flags for the security permission object.

Syntax

[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum SecurityPermissionFlag

Remarks

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

This enumeration is used by System.Security.Permissions.SecurityPermission.

Note:

Many of these flags are powerful and should only be granted to highly trusted code.

Members

Member NameDescription
AllFlags

The unrestricted state of the permission.

Assertion

Ability to assert that all this code's callers have the requisite permission for the operation.

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.

ControlAppDomain

Ability to create and manipulate an AppDomain.

ControlDomainPolicy

Ability to specify domain policy.

ControlEvidence

Ability to provide evidence, including the ability to alter the evidence provided by the common language runtime.

ControlPolicy

Ability to view and modify policy.

ControlPrincipal

Ability to manipulate the principal object.

ControlThread

Ability to use certain advanced operations on threads.

Execution

Permission for the code to run. Without this permission, managed code will not be executed.

Infrastructure

Permission to plug code into the common language runtime infrastructure, such as adding Remoting Context Sinks, Envoy Sinks and Dynamic Sinks.

NoFlags

No security access.

RemotingConfiguration

Permission to configure Remoting types and channels.

SerializationFormatter

Ability to provide serialization services. Used by serialization formatters.

SkipVerification

Ability to skip verification of code in this assembly. Code that is unverifiable can be run if this permission is granted.

UnmanagedCode

Ability to call unmanaged code.

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0