TransportFailedException(String, String, Exception) 构造函数

定义

构造一个 TransportFailedException

public TransportFailedException (string transportType, string message, Exception innerException = default);
public TransportFailedException (string transportType, string message, Exception? innerException = default);
new Microsoft.AspNetCore.Http.Connections.Client.TransportFailedException : string * string * Exception -> Microsoft.AspNetCore.Http.Connections.Client.TransportFailedException
Public Sub New (transportType As String, message As String, Optional innerException As Exception = Nothing)

参数

transportType
String

无法连接的传输的名称。

message
String

传输失败的原因。

innerException
Exception

如果尝试连接时引发了异常,则为可选的额外异常。

适用于