Export (0) Print
Expand All

SecurityPermissionAttribute.Execution Property

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

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

public bool Execution { get; set; }

Property Value

Type: System.Boolean
true if permission to execute code is declared; otherwise, false.

A demand for Execution permission at the assembly level is ignored. If an assembly has the right to execute, Execution permission is automatically granted, and setting the Execution property to either true or false has no effect.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft