SecurityManager::CheckExecutionRights Property
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.
Assembly: mscorlib (in mscorlib.dll)
public: [ObsoleteAttribute("Because execution permission checks can no longer be turned off, the CheckExecutionRights property no longer has any effect.")] property bool CheckExecutionRights { static bool get(); static void set(bool value); }
Property Value
Type: System::Booleantrue if code must have Execution in order to execute; otherwise, false.
| Exception | Condition |
|---|---|
| SecurityException | 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
Available since 1.1