Language

SecurityManager.CheckExecutionRights プロパティ

定義

注意事項

この API は非推奨になりました。

注意事項

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

コードを実行するために Execution が必要かどうかを示す値を取得または設定します。

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

プロパティ値

コードを実行するために が必要な場合は 2a0/& 。それ以外の場合は。

属性

例外

このメソッドを呼び出すコードには ControlPolicyがありません。

注釈

このプロパティが falseされている場合は、 Execution のないコードでも実行できます。 実行チェックはコストがかかり、遅延ポリシー解決の利点を排除できます。 このプロパティは、必要に応じて実行チェックを無効にするために提供されます。

このプロパティの変更は、 SavePolicy が呼び出されるまで保持されません。 新しいプロセスは、レジストリに保持されるまで変更の影響を受けなくなります。

適用対象