HttpIOException(HttpRequestError, String, Exception) Constructor

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Initializes a new instance of the HttpIOException class.

C#
public HttpIOException(System.Net.Http.HttpRequestError httpRequestError, string? message = default, Exception? innerException = default);

Parameters

httpRequestError
HttpRequestError

The HttpRequestError that caused the exception.

message
String

The message string describing the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to

产品 版本
.NET 8, 9, 10