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

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

WindowsAuthenticationEventArgs.Identity プロパティ

WindowsAuthenticationEventArgs コンストラクタに渡される Windows ID を取得します。

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

Dim instance As WindowsAuthenticationEventArgs
Dim value As WindowsIdentity

value = instance.Identity
public WindowsIdentity Identity { get; }
public:
property WindowsIdentity^ Identity {
    WindowsIdentity^ get ();
}
/** @property */
public WindowsIdentity get_Identity ()
public function get Identity
 () : WindowsIdentity

プロパティ値
WindowsAuthenticationEventArgs コンストラクタに渡された Windows ID。

解説解説

WindowsAuthenticationModule は、IIS によって提供された Windows ID と現在の HttpContext を使用して WindowsAuthenticationEventArgs オブジェクトを構築し、それを WindowsAuthentication_OnAuthenticate イベントに渡します。

IIS が匿名認証を使用する場合、Identity プロパティには、GetAnonymous メソッドによって返される ID が設定されます。

使用例使用例

WindowsAuthentication_OnAuthenticate イベントを使用して、現在の HttpContext の User プロパティにカスタム IPrincipal オブジェクトを設定するコード例を次に示します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WindowsAuthenticationEventArgs クラス
WindowsAuthenticationEventArgs メンバ
System.Web.Security 名前空間
その他の技術情報
Windows 認証プロバイダ



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

WindowsAuthenticationEventArgs.Identity プロパティのお隣キーワード

   

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



WindowsAuthenticationEventArgs.Identity プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS