共用方式為


ConnectionError Constructors

Definition

Overloads

ConnectionError()

Initializes a new instance of the ConnectionError class.

ConnectionError(String, String, String, Nullable<Int32>, String)

Initializes a new instance of the ConnectionError class.

ConnectionError()

Initializes a new instance of the ConnectionError class.

public ConnectionError ();
Public Sub New ()

Applies to

ConnectionError(String, String, String, Nullable<Int32>, String)

Initializes a new instance of the ConnectionError class.

public ConnectionError (string connectionState = default, string iPFrom = default, string iPTo = default, int? port = default, string exception = default);
new Microsoft.Azure.Management.CosmosDB.Models.ConnectionError : string * string * string * Nullable<int> * string -> Microsoft.Azure.Management.CosmosDB.Models.ConnectionError
Public Sub New (Optional connectionState As String = Nothing, Optional iPFrom As String = Nothing, Optional iPTo As String = Nothing, Optional port As Nullable(Of Integer) = Nothing, Optional exception As String = Nothing)

Parameters

connectionState
String

The kind of connection error that occurred. Possible values include: 'Unknown', 'OK', 'OperatorToDataCenterNetworkError', 'DatacenterToDatacenterNetworkError', 'InternalOperatorToDataCenterCertificateError', 'InternalError'

iPFrom
String

The IP of host that originated the failed connection.

iPTo
String

The IP that the connection attempted to reach.

port
Nullable<Int32>

The TCP port the connection was attempted on.

exception
String

Detailed error message about the failed connection.

Applies to