dotConnect for PostgreSQL Documentation
Devart.Common Namespace / ConnectionLostEventArgs Class / ConnectionLostEventArgs Constructor
The object where the connection loss occurs.
The reason of the connection loss.
The state of connection when connection is lost.
The application behavior when connection is lost.
The number of attempts to reconnect.

In This Topic
    ConnectionLostEventArgs Constructor
    In This Topic
    Initializes a new instance of the ConnectionLostEventArgs class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal component As Object, _
       ByVal cause As ConnectionLostCause, _
       ByVal context As ConnectionLostContext, _
       ByVal retryMode As RetryMode, _
       ByVal attemptNumber As Integer _
    )
    public ConnectionLostEventArgs( 
       object component,
       ConnectionLostCause cause,
       ConnectionLostContext context,
       RetryMode retryMode,
       int attemptNumber
    )

    Parameters

    component
    The object where the connection loss occurs.
    cause
    The reason of the connection loss.
    context
    The state of connection when connection is lost.
    retryMode
    The application behavior when connection is lost.
    attemptNumber
    The number of attempts to reconnect.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also