SecurityManager.CheckExecutionRights プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SecurityManager.CheckExecutionRights プロパティの意味・解説 

SecurityManager.CheckExecutionRights プロパティ

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

名前空間: System.Security
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Shared Property CheckExecutionRights
 As Boolean
Dim value As Boolean

value = SecurityManager.CheckExecutionRights

SecurityManager.CheckExecutionRights = value
public static bool CheckExecutionRights
 { get; set; }
public:
static property bool CheckExecutionRights {
    bool get ();
    void set (bool 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

例外例外
例外種類条件

SecurityException

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

解説解説

このプロパティ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.");
// 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."
 );
// Gets a value indicating whether code must have execution rights
// in order to execute.
if (!(SecurityManager.get_CheckExecutionRights())) {
    Console.WriteLine(
        "Execution rights are not required to run the assemblies.");
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

SecurityManager.CheckExecutionRights プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SecurityManager.CheckExecutionRights プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS