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:
property bool Execution {
	bool get();
	void set(bool value);
}

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
Available since 1.1
Return to top
Show: