HttpIOException(HttpRequestError, String, Exception) 构造函数

定义

初始化 HttpIOException 类的新实例。

public HttpIOException (System.Net.Http.HttpRequestError httpRequestError, string? message = default, Exception? innerException = default);
new System.Net.Http.HttpIOException : System.Net.Http.HttpRequestError * string * Exception -> System.Net.Http.HttpIOException
Public Sub New (httpRequestError As HttpRequestError, Optional message As String = Nothing, Optional innerException As Exception = Nothing)

参数

httpRequestError
HttpRequestError

导致异常的 HttpRequestError

message
String

描述错误的消息字符串。

innerException
Exception

导致当前异常的异常。

适用于