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

プロパティ値

コードを実行するために Execution が必要な場合は true。それ以外の場合は false

属性

例外

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

注釈

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

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

適用対象