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

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

WindowsImpersonationContext.Undo メソッド

ユーザー コンテキストを、対象オブジェクトによって表される Windows ユーザー戻します

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

例外例外
解説解説

実装時の注意 Microsoft Windows 98 および Windows Millennium Edition にはユーザーユーザー トークンがないため、これらのプラットフォーム偽装を行うことはできません。

使用例使用例

指定したユーザー トークン使用して Windows ID偽装する方法次の例に示します

Dim ImpersonationCtx As WindowsImpersonationContext
 = _
   WindowsIdentity.Impersonate(userToken)
'Do something under the context of the impersonated user. 
ImpersonationCtx.Undo()

WindowsImpersonationContext ImpersonationCtx = WindowsIdentity.Impersonate(userToken);
 
//Do something under the context of the impersonated user.
 ImpersonationCtx.Undo();

WindowsImpersonationContext^ ImpersonationCtx = WindowsIdentity::Impersonate( userToken
 );

//Do something under the context of the impersonated user.

ImpersonationCtx->Undo();
WindowsImpersonationContext impersonationCtx = 
    WindowsIdentity.Impersonate(userToken);

//Do something under the context of the impersonated user.
impersonationCtx.Undo();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WindowsImpersonationContext クラス
WindowsImpersonationContext メンバ
System.Security.Principal 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS