Skip to main content

ConnectionErrorEventArgs(String, DataConnectionParametersBase, Exception) Constructor

Initializes a new instance of the ConnectionErrorEventArgs class.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v24.2.dll

Declaration

public ConnectionErrorEventArgs(
    string connectionName,
    DataConnectionParametersBase connectionParameters,
    Exception exception
)

Parameters

Name Type Description
connectionName String

A String that specifies the name of the connection for which the event has been raised. This value is assigned to the ConfigureDataConnectionEventArgs.ConnectionName property.

connectionParameters DataConnectionParametersBase

A DataConnectionParametersBase descendant that contains connection parameters. This object is assigned to the ConfigureDataConnectionEventArgs.ConnectionParameters property.

exception Exception

A Exception object representing the exception that caused the event.

Remarks

Instances of the ConnectionErrorEventArgs class are automatically created, initialized and passed to the corresponding event handlers. Typically, there is no need to call this constructor directly from your code.

See Also