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

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

WindowsAuthenticationEventArgs.User プロパティ

現在の要求関連付ける IPrincipal オブジェクト取得または設定します

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

Dim instance As WindowsAuthenticationEventArgs
Dim value As IPrincipal

value = instance.User

instance.User = value
public IPrincipal User { get; set;
 }
public:
property IPrincipal^ User {
    IPrincipal^ get ();
    void set (IPrincipal^ value);
}
/** @property */
public IPrincipal get_User ()

/** @property */
public void set_User (IPrincipal value)
public function get User
 () : IPrincipal

public function set User
 (value : IPrincipal)

プロパティ
現在の要求関連付ける IPrincipal オブジェクト

解説解説
使用例使用例

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

Public Sub WindowsAuthentication_OnAuthenticate(sender
 As Object, args As WindowsAuthenticationEventArgs)
  If Not args.Identity.IsAnonymous Then
    args.User = New Samples.AspNet.Security.MyPrincipal(args.Identity)
  End If
End Sub
public void WindowsAuthentication_OnAuthenticate(object
 sender, WindowsAuthenticationEventArgs args)
{
  if (!args.Identity.IsAnonymous)
  {
    args.User = new Samples.AspNet.Security.MyPrincipal(args.Identity);
  }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WindowsAuthenticationEventArgs クラス
WindowsAuthenticationEventArgs メンバ
System.Web.Security 名前空間
その他の技術情報
Windows 認証プロバイダ


このページでは「.NET Framework クラス ライブラリ リファレンス」からWindowsAuthenticationEventArgs.User プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からWindowsAuthenticationEventArgs.User プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からWindowsAuthenticationEventArgs.User プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS