Share via


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

做為目前例外狀況發生原因的例外狀況。

適用於