HttpListenerException コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
HttpListenerException クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| HttpListenerException() |
HttpListenerException クラスの新しいインスタンスを初期化します。 |
| HttpListenerException(Int32) |
指定したエラー コードを使用して、 HttpListenerException クラスの新しいインスタンスを初期化します。 |
| HttpListenerException(Int32, String) |
指定したエラー コードとメッセージを使用して、 HttpListenerException クラスの新しいインスタンスを初期化します。 |
| HttpListenerException(SerializationInfo, StreamingContext) |
古い.
SerializationInfoクラスとStreamingContext クラスの指定したインスタンスから、HttpListenerException クラスの新しいインスタンスを初期化します。 |
HttpListenerException()
HttpListenerException クラスの新しいインスタンスを初期化します。
public:
HttpListenerException();
public HttpListenerException();
Public Sub New ()
注釈
このコンストラクターは、最新の Windows エラーを使用して ErrorCode プロパティと Message プロパティを設定します。
適用対象
HttpListenerException(Int32)
指定したエラー コードを使用して、 HttpListenerException クラスの新しいインスタンスを初期化します。
public:
HttpListenerException(int errorCode);
public HttpListenerException(int errorCode);
new System.Net.HttpListenerException : int -> System.Net.HttpListenerException
Public Sub New (errorCode As Integer)
パラメーター
注釈
errorCodeの値は、ErrorCode プロパティの設定に使用されます。
適用対象
HttpListenerException(Int32, String)
指定したエラー コードとメッセージを使用して、 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の値は、ErrorCode プロパティの設定に使用されます。
message パラメーターは、Message プロパティを設定するために使用されます。
適用対象
HttpListenerException(SerializationInfo, StreamingContext)
注意事項
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 オブジェクト。
- 属性