Skip to main content
A newer version of this page is available. .

ConnectionErrorEventArgs Class

Provides data for the ConnectionError event.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v17.2.dll

Declaration

public class ConnectionErrorEventArgs :
    ConfigureDataConnectionEventArgs

Remarks

The ConnectionError event is fired when current connection parameters do not allow connecting to a data store (for instance, the database is inaccessible). You can handle the ConnectionError event and override the default behavior in this case.

To override default behavior do the following:

To cancel connecting to the data store, use the ConnectionErrorEventArgs.Cancel property.

To get the exception that caused the event, use the ConnectionErrorEventArgs.Exception property.

See Also