CodeAccessPermission.RevertDeny メソッド
アセンブリ: mscorlib (mscorlib.dll 内)




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();

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からCodeAccessPermission.RevertDeny メソッドを検索する場合は、下記のリンクをクリックしてください。

- CodeAccessPermission.RevertDeny メソッドのページへのリンク