HttpProtocolException(Int64, String, Exception) Konstruktor
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.