HttpProtocolException(Int64, String, Exception) Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la HttpProtocolException classe avec le code d’erreur, le message et l’exception interne spécifiés.
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)
Paramètres
- errorCode
- Int64
Code d’erreur HTTP/2 ou HTTP/3.
- message
- String
Message d’erreur qui explique la raison de l’exception.
- innerException
- Exception
Exception qui est la cause de l’exception actuelle.