HttpListenerBasicIdentityとは? わかりやすく解説

HttpListenerBasicIdentity クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

基本認証要求から取得したユーザー名とパスワードを保持します。

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

Public Class HttpListenerBasicIdentity
    Inherits GenericIdentity
Dim instance As HttpListenerBasicIdentity
public class HttpListenerBasicIdentity : GenericIdentity
public ref class HttpListenerBasicIdentity
 : public GenericIdentity
public class HttpListenerBasicIdentity extends
 GenericIdentity
public class HttpListenerBasicIdentity extends
 GenericIdentity
継承階層継承階層
System.Object
   System.Security.Principal.GenericIdentity
    System.Net.HttpListenerBasicIdentity
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

HttpListenerBasicIdentity コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

指定したユーザー名とパスワードを使用して、HttpListenerBasicIdentity クラスの新しいインスタンスを初期化します。

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

解説解説

このコンストラクタは、基本認証を実行したときに HttpListener クラスによって呼び出されます。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HttpListenerBasicIdentity クラス
HttpListenerBasicIdentity メンバ
System.Net 名前空間

HttpListenerBasicIdentity プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ AuthenticationType  ユーザーを識別するために使用する認証の種類を取得します。 ( GenericIdentity から継承されます。)
パブリック プロパティ IsAuthenticated  ユーザーが認証されているかどうかを示す値を取得します。 ( GenericIdentity から継承されます。)
パブリック プロパティ Name  ユーザーの名前を取得します。 ( GenericIdentity から継承されます。)
パブリック プロパティ Password 基本認証の試行から取得したパスワードを示します。
参照参照

関連項目

HttpListenerBasicIdentity クラス
System.Net 名前空間

HttpListenerBasicIdentity メソッド


HttpListenerBasicIdentity メンバ

基本認証要求から取得したユーザー名とパスワードを保持します。

HttpListenerBasicIdentity データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド HttpListenerBasicIdentity 指定したユーザー名とパスワードを使用して、HttpListenerBasicIdentity クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ AuthenticationType  ユーザーを識別するために使用する認証の種類を取得します。(GenericIdentity から継承されます。)
パブリック プロパティ IsAuthenticated  ユーザーが認証されているかどうかを示す値を取得します。(GenericIdentity から継承されます。)
パブリック プロパティ Name  ユーザーの名前を取得します。(GenericIdentity から継承されます。)
パブリック プロパティ Password 基本認証の試行から取得したパスワードを示します。
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

HttpListenerBasicIdentity クラス
System.Net 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「HttpListenerBasicIdentity」の関連用語

HttpListenerBasicIdentityのお隣キーワード

   

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



HttpListenerBasicIdentityのページの著作権

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

©2026 GRAS Group, Inc.RSS