Mono Class Library: System.Security.Permissions Namespace

System.Security.Permissions.SecurityPermissionFlag Enumeration

Specifies a set of security permissions applied to a System.Security.Permissions.SecurityPermission instance. [Edit]
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum SecurityPermissionFlag

Remarks

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

System.Security.Permissions.SecurityPermissionFlag is a bit-field; specify multiple values using the bitwise OR operator.

For information on security, see Partition II of the CLI Specification.

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

[Edit]

Members

Member NameDescription
AllFlagsDocumentation for this section has not yet been entered. [Edit]
Assertion

Specifies the ability to assert that all of the callers of the code granted this permission will pass the check for a specific permission or permission set.

The ability to assert a specific permission or permission set allows code to ensure that its callers do not fail with a security exception for lack of the specific permission or permission set asserted.

Note: Asserting a permission is often used when writing library code that accesses protected resources but itself does not expose these resources in any exploitable way to the calling code.

[Edit]
BindingRedirectsDocumentation for this section has not yet been entered. [Edit]
ControlAppDomainDocumentation for this section has not yet been entered. [Edit]
ControlDomainPolicyDocumentation for this section has not yet been entered. [Edit]
ControlEvidenceDocumentation for this section has not yet been entered. [Edit]
ControlPolicyDocumentation for this section has not yet been entered. [Edit]
ControlPrincipalDocumentation for this section has not yet been entered. [Edit]
ControlThread Specifies the ability to control thread behavior. The operations protected include System.Threading.Thread.Abort(object) and System.Threading.Thread.ResetAbort . [Edit]
Execution Specifies permission for the code to run. Without this permission managed code cannot execute. [Edit]
InfrastructureDocumentation for this section has not yet been entered. [Edit]
NoFlags Specifies that none of the permissions in this enumeration are available. [Edit]
RemotingConfigurationDocumentation for this section has not yet been entered. [Edit]
SerializationFormatterDocumentation for this section has not yet been entered. [Edit]
SkipVerification

Specifies the right to skip the verification checks that ensure type safety and metadata correctness in an assembly. If an assembly has been granted this permission it will not fail with a System.Security.VerificationException even if the assembly contains unverifiable constructs.

Note: Code that is unverifiable can execute without causing a System.Security.VerificationException if this permission is granted.

[Edit]
UnmanagedCode

Specifies the ability to call unmanaged code.

Note: Because unmanaged code potentially allows other permissions to be bypassed, this permission should be used with caution. It is used for applications calling native code using PInvoke.

[Edit]

Requirements

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