HttpProtocolException(Int64, String, Exception) 构造函数

定义

使用指定的错误代码、消息和内部异常初始化 类的新实例 HttpProtocolException

public:
 HttpProtocolException(long errorCode, System::String ^ message, Exception ^ innerException);
public HttpProtocolException (long errorCode, string? message, Exception? innerException);
public HttpProtocolException (long errorCode, string message, Exception? innerException);
new System.Net.Http.HttpProtocolException : int64 * string * Exception -> System.Net.Http.HttpProtocolException
Public Sub New (errorCode As Long, message As String, innerException As Exception)

参数

errorCode
Int64

HTTP/2 或 HTTP/3 错误代码。

message
String

解释异常原因的错误消息。

innerException
Exception

导致当前异常的异常。

适用于