語言

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

該例外即為當前例外的原因。

適用於