HttpRequestException Oluşturucular

Tanım

HttpRequestException sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

HttpRequestException()

HttpRequestException sınıfının yeni bir örneğini başlatır.

HttpRequestException(String)

Geçerli özel durumu açıklayan belirli bir iletiyle sınıfının yeni bir örneğini HttpRequestException başlatır.

HttpRequestException(String, Exception)

Geçerli özel durumu ve bir iç özel durumu açıklayan belirli bir iletiyle sınıfının yeni bir örneğini HttpRequestException başlatır.

HttpRequestException(String, Exception, Nullable<HttpStatusCode>)

Geçerli özel durumu, iç özel durumu ve HTTP durum kodunu açıklayan belirli bir iletiyle sınıfının yeni bir örneğini HttpRequestException başlatır.

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

Sınıfın HttpRequestException yeni bir örneğini belirli bir iletiyle bir iç özel durum ve bir HTTP durum kodu ile başlatır HttpRequestError.

HttpRequestException()

Kaynak:
HttpRequestException.cs
Kaynak:
HttpRequestException.cs
Kaynak:
HttpRequestException.cs

HttpRequestException sınıfının yeni bir örneğini başlatır.

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

Şunlara uygulanır

HttpRequestException(String)

Kaynak:
HttpRequestException.cs
Kaynak:
HttpRequestException.cs
Kaynak:
HttpRequestException.cs

Geçerli özel durumu açıklayan belirli bir iletiyle sınıfının yeni bir örneğini HttpRequestException başlatır.

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)

Parametreler

message
String

Geçerli özel durumu açıklayan bir ileti.

Şunlara uygulanır

HttpRequestException(String, Exception)

Kaynak:
HttpRequestException.cs
Kaynak:
HttpRequestException.cs
Kaynak:
HttpRequestException.cs

Geçerli özel durumu ve bir iç özel durumu açıklayan belirli bir iletiyle sınıfının yeni bir örneğini HttpRequestException başlatır.

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)

Parametreler

message
String

Geçerli özel durumu açıklayan bir ileti.

inner
Exception

İç özel durum.

Şunlara uygulanır

HttpRequestException(String, Exception, Nullable<HttpStatusCode>)

Kaynak:
HttpRequestException.cs
Kaynak:
HttpRequestException.cs
Kaynak:
HttpRequestException.cs

Geçerli özel durumu, iç özel durumu ve HTTP durum kodunu açıklayan belirli bir iletiyle sınıfının yeni bir örneğini HttpRequestException başlatır.

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))

Parametreler

message
String

Geçerli özel durumu açıklayan bir ileti.

inner
Exception

İç özel durum.

statusCode
Nullable<HttpStatusCode>

HTTP durum kodu.

Şunlara uygulanır

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

Kaynak:
HttpRequestException.cs
Kaynak:
HttpRequestException.cs

Sınıfın HttpRequestException yeni bir örneğini belirli bir iletiyle bir iç özel durum ve bir HTTP durum kodu ile başlatır 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)

Parametreler

httpRequestError
HttpRequestError

Özel HttpRequestError duruma neden olan.

message
String

Geçerli özel durumu açıklayan bir ileti.

inner
Exception

İç özel durum.

statusCode
Nullable<HttpStatusCode>

HTTP durum kodu.

Şunlara uygulanır