HttpRequestException コンストラクター

定義

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

オーバーロード

HttpRequestException()

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

HttpRequestException(String)

現在の例外を記述するメッセージを指定して、HttpRequestException クラスの新しいインスタンスを初期化します。

HttpRequestException(String, Exception)

現在の例外と内部例外を記述するメッセージを指定して、HttpRequestException クラスの新しいインスタンスを初期化します。

HttpRequestException(String, Exception, Nullable<HttpStatusCode>)

現在の例外、内部例外、および HTTP 状態コードを記述する特定のメッセージを使用して、HttpRequestException クラスの新しいインスタンスを初期化します。

HttpRequestException(HttpRequestError, String, Exception, Nullable<HttpStatusCode>)

特定の HttpRequestException メッセージ内部例外と HTTP 状態コードと を使用して、 クラスの新しいインスタンスを HttpRequestError初期化します。

HttpRequestException()

ソース:
HttpRequestException.cs
ソース:
HttpRequestException.cs
ソース:
HttpRequestException.cs

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

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

適用対象

HttpRequestException(String)

ソース:
HttpRequestException.cs
ソース:
HttpRequestException.cs
ソース:
HttpRequestException.cs

現在の例外を記述するメッセージを指定して、HttpRequestException クラスの新しいインスタンスを初期化します。

public:
 HttpRequestException(System::String ^ message);
public HttpRequestException (string message);
public HttpRequestException (string? message);
new System.Net.Http.HttpRequestException : string -> System.Net.Http.HttpRequestException
Public Sub New (message As String)

パラメーター

message
String

現在の例外を説明するメッセージ。

適用対象

HttpRequestException(String, Exception)

ソース:
HttpRequestException.cs
ソース:
HttpRequestException.cs
ソース:
HttpRequestException.cs

現在の例外と内部例外を記述するメッセージを指定して、HttpRequestException クラスの新しいインスタンスを初期化します。

public:
 HttpRequestException(System::String ^ message, Exception ^ inner);
public HttpRequestException (string message, Exception inner);
public HttpRequestException (string? message, Exception? inner);
new System.Net.Http.HttpRequestException : string * Exception -> System.Net.Http.HttpRequestException
Public Sub New (message As String, inner As Exception)

パラメーター

message
String

現在の例外を説明するメッセージ。

inner
Exception

内部例外。

適用対象

HttpRequestException(String, Exception, Nullable<HttpStatusCode>)

ソース:
HttpRequestException.cs
ソース:
HttpRequestException.cs
ソース:
HttpRequestException.cs

現在の例外、内部例外、および HTTP 状態コードを記述する特定のメッセージを使用して、HttpRequestException クラスの新しいインスタンスを初期化します。

public:
 HttpRequestException(System::String ^ message, Exception ^ inner, Nullable<System::Net::HttpStatusCode> statusCode);
public HttpRequestException (string? message, Exception? inner, System.Net.HttpStatusCode? statusCode);
new System.Net.Http.HttpRequestException : string * Exception * Nullable<System.Net.HttpStatusCode> -> System.Net.Http.HttpRequestException
Public Sub New (message As String, inner As Exception, statusCode As Nullable(Of HttpStatusCode))

パラメーター

message
String

現在の例外を説明するメッセージ。

inner
Exception

内部例外。

statusCode
Nullable<HttpStatusCode>

HTTP 状態コード。

適用対象

HttpRequestException(HttpRequestError, String, Exception, Nullable<HttpStatusCode>)

ソース:
HttpRequestException.cs
ソース:
HttpRequestException.cs

特定の HttpRequestException メッセージ内部例外と HTTP 状態コードと を使用して、 クラスの新しいインスタンスを HttpRequestError初期化します。

public HttpRequestException (System.Net.Http.HttpRequestError httpRequestError, string? message = default, Exception? inner = default, System.Net.HttpStatusCode? statusCode = default);
new System.Net.Http.HttpRequestException : System.Net.Http.HttpRequestError * string * Exception * Nullable<System.Net.HttpStatusCode> -> System.Net.Http.HttpRequestException
Public Sub New (httpRequestError As HttpRequestError, Optional message As String = Nothing, Optional inner As Exception = Nothing, Optional statusCode As Nullable(Of HttpStatusCode) = Nothing)

パラメーター

httpRequestError
HttpRequestError

例外の原因となった HttpRequestError

message
String

現在の例外を説明するメッセージ。

inner
Exception

内部例外。

statusCode
Nullable<HttpStatusCode>

HTTP 状態コード。

適用対象