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.Permissions
Assembly:  mscorlib (in mscorlib.dll)

[<SerializableAttribute>]
[<FlagsAttribute>]
[<ComVisibleAttribute(true)>]
type SecurityPermissionFlag

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.

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

This enumeration is used by SecurityPermission.

System_CAPS_cautionCaution

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

The following code example shows the use of the SecurityPermissionFlag enumeration to deny and demand security permissions.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: