HttpProtocolException(Int64, String, Exception) Konstruktor

Definition

Initierar en ny instans av HttpProtocolException klassen med den angivna felkoden, meddelandet och det inre undantaget.

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)

Parametrar

errorCode
Int64

HTTP/2- eller HTTP/3-felkoden.

message
String

Felmeddelandet som förklarar orsaken till undantaget.

innerException
Exception

Undantaget som är orsaken till det aktuella undantaget.

Gäller för