CodeAccessPermission.RevertDeny メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CodeAccessPermission.RevertDeny メソッドの意味・解説 

CodeAccessPermission.RevertDeny メソッド

現在のフレーム対す以前Deny をすべて削除し無効にます。

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

Public Shared Sub RevertDeny
CodeAccessPermission.RevertDeny
public static void RevertDeny
 ()
public:
static void RevertDeny ()
public static void RevertDeny
 ()
例外例外
例外種類条件

ExecutionEngineException

現在のフレームには、Deny存在しません。

解説解説

現在のフレームDeny存在しない場合は、ExecutionEngineExceptionスローさます。

使用例使用例

RevertDeny メソッド使用して現在のフレーム対す以前オーバーライド元に戻す方法次のコード例示します次のコード例は RevertAll メソッド例の一部です。

' Create a new UIPermission that allows access only to OwnClipboard.
Dim clipboardPermission As New
 UIPermission(UIPermissionClipboard.OwnClipboard)
' Deny access to OwnClipboard.
Console.WriteLine("Denying access to OwnClipboard")
clipboardPermission.Deny()
' Demand access to files in the specified path.
DemandOwnClipboardAccess()
' Revert the Deny.
Console.WriteLine("Reverting the Deny.")
CodeAccessPermission.RevertDeny()
DemandOwnClipboardAccess()
// Create a new UIPermission that allows access only to OwnClipboard.
UIPermission clipboardPermission = new UIPermission(UIPermissionClipboard.OwnClipboard);
// Deny access to OwnClipboard.
Console.WriteLine("Denying access to OwnClipboard");
clipboardPermission.Deny();
// Demand access to files in the specified path.
DemandOwnClipboardAccess();
// Revert the Deny.
Console.WriteLine("Reverting the Deny.");
CodeAccessPermission.RevertDeny();
DemandOwnClipboardAccess();
// Create a new UIPermission that allows access only to OwnClipboard.
UIPermission^ clipboardPermission = gcnew UIPermission(
   UIPermissionClipboard::OwnClipboard );

// Deny access to OwnClipboard.
Console::WriteLine( L"Denying access to OwnClipboard" );
clipboardPermission->Deny();

// Demand access to files in the specified path.
DemandOwnClipboardAccess();

// Revert the Deny.
Console::WriteLine( L"Reverting the Deny." );
CodeAccessPermission::RevertDeny();
DemandOwnClipboardAccess();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeAccessPermission クラス
CodeAccessPermission メンバ
System.Security 名前空間



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

辞書ショートカット

すべての辞書の索引

「CodeAccessPermission.RevertDeny メソッド」の関連用語

CodeAccessPermission.RevertDeny メソッドのお隣キーワード
検索ランキング

   

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



CodeAccessPermission.RevertDeny メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS