HttpListenerException コンストラクター

定義

HttpListenerException クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
HttpListenerException()

HttpListenerException クラスの新しいインスタンスを初期化します。

HttpListenerException(Int32)

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

HttpListenerException(Int32, String)

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

HttpListenerException(SerializationInfo, StreamingContext)
古い.

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

HttpListenerException()

ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs

HttpListenerException クラスの新しいインスタンスを初期化します。

public:
 HttpListenerException();
public HttpListenerException();
Public Sub New ()

注釈

このコンストラクターは、最新の Windows エラーを使用して ErrorCode プロパティと Message プロパティを設定します。

適用対象

HttpListenerException(Int32)

ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs

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

public:
 HttpListenerException(int errorCode);
public HttpListenerException(int errorCode);
new System.Net.HttpListenerException : int -> System.Net.HttpListenerException
Public Sub New (errorCode As Integer)

パラメーター

errorCode
Int32

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

注釈

errorCodeの値は、ErrorCode プロパティの設定に使用されます。

適用対象

HttpListenerException(Int32, String)

ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs

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

public:
 HttpListenerException(int errorCode, System::String ^ message);
public HttpListenerException(int errorCode, string message);
new System.Net.HttpListenerException : int * string -> System.Net.HttpListenerException
Public Sub New (errorCode As Integer, message As String)

パラメーター

errorCode
Int32

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

message
String

発生したエラーを説明する String

注釈

errorCodeの値は、ErrorCode プロパティの設定に使用されます。 message パラメーターは、Message プロパティを設定するために使用されます。

適用対象

HttpListenerException(SerializationInfo, StreamingContext)

ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs
ソース:
HttpListenerException.cs

注意事項

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

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

protected:
 HttpListenerException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected HttpListenerException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected HttpListenerException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Net.HttpListenerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpListenerException
new System.Net.HttpListenerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpListenerException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

パラメーター

serializationInfo
SerializationInfo

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

streamingContext
StreamingContext

StreamingContext オブジェクト。

属性

こちらもご覧ください

適用対象