SecurityManager.CheckExecutionRights Property
Gets or sets a value indicating whether code must have Execution in order to execute.
Assembly: mscorlib (in mscorlib.dll)
| 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 complete example, see the SecurityManager class topic.
- SecurityPermission
for the ability to modify policy. Associated enumeration: SecurityPermissionFlag.ControlPolicy
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.