System.Security.SecurityManager.CheckExecutionRights Property

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

Syntax

[System.Obsolete]
public static bool CheckExecutionRights { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

If this property is false, even code without System.Security.Permissions.SecurityPermissionFlag.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 SecurityManager.SavePolicy is called. New processes will not be affected by the change until it is persisted in the registry.

Requirements

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