SecurityManager.CheckExecutionRights Property

Note: This API is now obsolete.

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets a value indicating whether code must have Execution in order to execute.

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

[ObsoleteAttribute("Because execution permission checks can no longer be turned off, the CheckExecutionRights property no longer has any effect.")]
public static bool CheckExecutionRights { get; set; }

Property Value

Type: System.Boolean

true if code must have Execution in order to execute; otherwise, false.

Exception Condition

The code that calls this method does not have SecurityPermissionFlag.ControlPolicy.

If this property is false, even code without Execution can execute. Execution checking is expensive and can eliminate the advantages of lazy policy resolution. This property is provided to disable execution checking when needed.

A change to this property is not persisted until SavePolicy is called. New processes will not be affected by the change until it is persisted in the registry.


for the ability to modify policy. Associated enumeration: SecurityPermissionFlag.ControlPolicy

.NET Framework
Available since 1.1
Return to top