SecurityManager.CheckExecutionRights プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

Dim value As Boolean value = SecurityManager.CheckExecutionRights SecurityManager.CheckExecutionRights = value
/** @property */ public static boolean get_CheckExecutionRights () /** @property */ public static void set_CheckExecutionRights (boolean value)
public static function get CheckExecutionRights () : boolean public static function set CheckExecutionRights (value : boolean)
コードを実行するために Execution が必要な場合は true。それ以外の場合は false。


このプロパティが false の場合は、Execution のないコードも実行できます。実行チェックは負荷が大きく、遅延ポリシー解決の利点を損なうことがあります。このプロパティは、必要に応じて実行チェックを無効にするために用意されています。
このプロパティの変更は、SavePolicy を呼び出すまで永続化されません。新しいプロセスは、レジストリで永続化されるまで、変更の影響を受けません。

詳細については、SecurityManager クラスのトピックを参照してください。
' Gets a value indicating whether code must have execution rights in order to execute. If Not SecurityManager.CheckExecutionRights Then Console.WriteLine("Execution rights are not required to run the assemblies.") End If
// Gets a value indicating whether code must have execution rights in order to execute. if(!SecurityManager.CheckExecutionRights) Console.WriteLine("Execution rights are not required to run the assemblies.");


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- SecurityManager.CheckExecutionRights プロパティのページへのリンク