UnmanagedCode Property

SecurityPermissionAttribute.UnmanagedCode Property


Gets or sets a value indicating whether permission to call unmanaged code is declared.

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

public bool UnmanagedCode { get; set; }

Property Value

Type: System.Boolean

true if permission to call unmanaged code is declared; otherwise, false.

.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2016 Microsoft