HttpIOException(HttpRequestError, String, Exception) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
导致当前异常的异常。