dotConnect for DB2 Documentation
Devart.Data.DB2 Namespace / DB2Connection Class / ConnectionLost Event

In This Topic
    ConnectionLost Event
    In This Topic
    This event occurs when connection is lost.
    Syntax
    'Declaration
     
    Public Event ConnectionLost As ConnectionLostEventHandler
    public event ConnectionLostEventHandler ConnectionLost
    Event Data

    The event handler receives an argument of type ConnectionLostEventArgs containing data related to this event. The following ConnectionLostEventArgs properties provide information specific to this event.

    PropertyDescription
    The number of attempts to reconnect.  
    The reason of the connection loss.  
    The object where the connection loss occurs.  
    The state of the connection when connection is lost.  
    The application behavior when connection is lost.  
    Remarks
    Clients that want to process fatal errors and perform failover should create a Devart.Common.ConnectionLostEventHandler delegate to listen to this event.
    See Also