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

HttpListenerException クラス

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

HTTP 要求の処理中にエラー発生するスローされる例外

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

<SerializableAttribute> _
Public Class HttpListenerException
    Inherits Win32Exception
Dim instance As HttpListenerException
[SerializableAttribute] 
public class HttpListenerException : Win32Exception
[SerializableAttribute] 
public ref class HttpListenerException : public
 Win32Exception
/** @attribute SerializableAttribute() */ 
public class HttpListenerException extends
 Win32Exception
SerializableAttribute 
public class HttpListenerException extends
 Win32Exception
解説解説

この例外は、HttpListener の初期化中または HTTP 要求対す応答作成中または送信中にエラーが発生した場合HttpListener クラスおよびそのクラス関連付けられているクラスによってスローさます。たとえば、既に登録済みURI (Uniform Resource Identifier) プレフィックスHttpListener登録しようとした場合に、この例外スローさます。

継承階層継承階層
System.Object
   System.Exception
     System.SystemException
       System.Runtime.InteropServices.ExternalException
         System.ComponentModel.Win32Exception
          System.Net.HttpListenerException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HttpListenerException メンバ
System.Net 名前空間
HttpListener クラス
HttpListenerContext クラス
HttpListenerRequest
HttpListenerResponse

HttpListenerException コンストラクタ ()


HttpListenerException コンストラクタ (Int32, String)

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

指定したエラー コードおよびメッセージ使用して、HttpListenerException クラス新しインスタンス初期化します。

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

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

HttpListenerException コンストラクタ (SerializationInfo, StreamingContext)

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

SerializationInfo クラスStreamingContext クラス指定したインスタンスから、HttpListenerException クラス新しインスタンス初期化します。

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

Protected Sub New ( _
    serializationInfo As SerializationInfo, _
    streamingContext As StreamingContext _
)
Dim serializationInfo As SerializationInfo
Dim streamingContext As StreamingContext

Dim instance As New HttpListenerException(serializationInfo,
 streamingContext)
protected HttpListenerException (
    SerializationInfo serializationInfo,
    StreamingContext streamingContext
)
protected:
HttpListenerException (
    SerializationInfo^ serializationInfo, 
    StreamingContext streamingContext
)
protected HttpListenerException (
    SerializationInfo serializationInfo, 
    StreamingContext streamingContext
)
protected function HttpListenerException (
    serializationInfo : SerializationInfo, 
    streamingContext : StreamingContext
)

パラメータ

serializationInfo

新しい HttpListenerException オブジェクトを逆シリアル化するために必要な情報格納する SerializationInfo オブジェクト

streamingContext

StreamingContext オブジェクト

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

HttpListenerException コンストラクタ (Int32)

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

指定したエラー コード使用して、HttpListenerException クラス新しインスタンス初期化します。

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

public HttpListenerException (
    int errorCode
)
public:
HttpListenerException (
    int errorCode
)
public HttpListenerException (
    int errorCode
)
public function HttpListenerException (
    errorCode : int
)

パラメータ

errorCode

発生したエラー識別する Int32 値。

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

HttpListenerException コンストラクタ

HttpListenerException クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
HttpListenerException () HttpListenerException クラス新しインスタンス初期化します。
HttpListenerException (Int32) 指定したエラー コード使用してHttpListenerException クラス新しインスタンス初期化します。
HttpListenerException (Int32, String) 指定したエラー コードおよびメッセージ使用してHttpListenerException クラス新しインスタンス初期化します。
HttpListenerException (SerializationInfo, StreamingContext) SerializationInfo クラスと StreamingContext クラス指定したインスタンスから、HttpListenerException クラス新しインスタンス初期化します。
参照参照

関連項目

HttpListenerException クラス
HttpListenerException メンバ
System.Net 名前空間

HttpListenerException プロパティ


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

プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。 ( Exception から継承されます。)
参照参照

関連項目

HttpListenerException クラス
System.Net 名前空間
HttpListener クラス
HttpListenerContext クラス
HttpListenerRequest
HttpListenerResponse

HttpListenerException メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

HttpListenerException クラス
System.Net 名前空間
HttpListener クラス
HttpListenerContext クラス
HttpListenerRequest
HttpListenerResponse

HttpListenerException メンバ

HTTP 要求の処理中にエラー発生するスローされる例外

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


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド HttpListenerException オーバーロードされますHttpListenerException クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

HttpListenerException クラス
System.Net 名前空間
HttpListener クラス
HttpListenerContext クラス
HttpListenerRequest
HttpListenerResponse


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

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

辞書ショートカット

すべての辞書の索引

「HttpListenerException」の関連用語

HttpListenerExceptionのお隣キーワード
検索ランキング

   

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



HttpListenerExceptionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS