public enum SecurityPermissionFlag
Object
ValueType
Enum
SecurityPermissionFlag
mscorlib
BCL
Specifies a set of security permissions applied to a SecurityPermission instance.
This enumeration is used by SecurityPermission.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. ]
FlagsAttribute
System.Security.Permissions Namespace
SecurityPermissionFlag Fields
SecurityPermissionFlag.Assertion Field
SecurityPermissionFlag.ControlThread Field
SecurityPermissionFlag.Execution Field
SecurityPermissionFlag.NoFlags Field
SecurityPermissionFlag.SkipVerification Field
SecurityPermissionFlag.UnmanagedCode Field
SecurityPermissionFlag.value__ Field
Assertion = 0x1;
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. ]
System.Security.Permissions.SecurityPermissionFlag Enum, System.Security.Permissions Namespace
ControlThread = 0x10;
Specifies the ability to control thread behavior. The operations protected include System.Threading.Thread.Abort(System.Object) and System.Threading.Thread.ResetAbort .
System.Security.Permissions.SecurityPermissionFlag Enum, System.Security.Permissions Namespace
Execution = 0x8;
Specifies permission for the code to run. Without this permission managed code cannot execute.
System.Security.Permissions.SecurityPermissionFlag Enum, System.Security.Permissions Namespace
NoFlags = 0x0;
Specifies that none of the permissions in this enumeration are available.
System.Security.Permissions.SecurityPermissionFlag Enum, System.Security.Permissions Namespace
SkipVerification = 0x4;
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 VerificationException even if the assembly contains unverifiable constructs.[Note: Code that is unverifiable can execute without causing a VerificationException if this permission is granted.]
System.Security.Permissions.SecurityPermissionFlag Enum, System.Security.Permissions Namespace
UnmanagedCode = 0x2;
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.]
System.Security.Permissions.SecurityPermissionFlag Enum, System.Security.Permissions Namespace
value__;
System.Security.Permissions.SecurityPermissionFlag Enum, System.Security.Permissions Namespace