System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode Field

Ability to call unmanaged code.

Value: UnmanagedCode

Syntax

SecurityPermissionFlag UnmanagedCode

Remarks

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.

Requirements

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