Bewerken

Share via


SecurityManager.CheckExecutionRights Property

Definition

Caution

This API is now deprecated.

Caution

Because execution permission checks can no longer be turned off, the CheckExecutionRights property no longer has any effect.

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

public:
 static property bool CheckExecutionRights { bool get(); void set(bool value); };
[System.Obsolete]
public static bool CheckExecutionRights { get; set; }
public static bool CheckExecutionRights { get; set; }
[System.Obsolete("Because execution permission checks can no longer be turned off, the CheckExecutionRights property no longer has any effect.")]
public static bool CheckExecutionRights { get; set; }
[<System.Obsolete>]
static member CheckExecutionRights : bool with get, set
static member CheckExecutionRights : bool with get, set
[<System.Obsolete("Because execution permission checks can no longer be turned off, the CheckExecutionRights property no longer has any effect.")>]
static member CheckExecutionRights : bool with get, set
Public Shared Property CheckExecutionRights As Boolean

Property Value

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

Attributes

Exceptions

The code that calls this method does not have ControlPolicy.

Remarks

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.

Applies to