Compartilhar via


ArmCosmosDBModelFactory.CassandraConnectionError Method

Definition

Initializes a new instance of CassandraConnectionError.

public static Azure.ResourceManager.CosmosDB.Models.CassandraConnectionError CassandraConnectionError (Azure.ResourceManager.CosmosDB.Models.CassandraConnectionState? connectionState = default, string ipFrom = default, string ipTo = default, int? port = default, string exception = default);
static member CassandraConnectionError : Nullable<Azure.ResourceManager.CosmosDB.Models.CassandraConnectionState> * string * string * Nullable<int> * string -> Azure.ResourceManager.CosmosDB.Models.CassandraConnectionError
Public Shared Function CassandraConnectionError (Optional connectionState As Nullable(Of CassandraConnectionState) = Nothing, Optional ipFrom As String = Nothing, Optional ipTo As String = Nothing, Optional port As Nullable(Of Integer) = Nothing, Optional exception As String = Nothing) As CassandraConnectionError

Parameters

connectionState
Nullable<CassandraConnectionState>

The kind of connection error that occurred.

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.

Returns

A new CassandraConnectionError instance for mocking.

Applies to