Share via


DbConnectionFailureEventArgs Constructor

Initializes a new instance of the DbConnectionFailureEventArgs class with the specified exception, number of retries, and action to take in response to the failure.

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

Syntax

'Declaration
Public Sub New ( _
    failureException As Exception, _
    retryCount As Integer, _
    action As DbConnectionFailureAction _
)
'Usage
Dim failureException As Exception
Dim retryCount As Integer
Dim action As DbConnectionFailureAction

Dim instance As New DbConnectionFailureEventArgs(failureException, _
    retryCount, action)
public DbConnectionFailureEventArgs(
    Exception failureException,
    int retryCount,
    DbConnectionFailureAction action
)
public:
DbConnectionFailureEventArgs(
    Exception^ failureException, 
    int retryCount, 
    DbConnectionFailureAction action
)
new : 
        failureException:Exception * 
        retryCount:int * 
        action:DbConnectionFailureAction -> DbConnectionFailureEventArgs
public function DbConnectionFailureEventArgs(
    failureException : Exception, 
    retryCount : int, 
    action : DbConnectionFailureAction
)

Parameters

  • failureException
    Type: System.Exception
    The exception that indicates the cause of the failure.
  • retryCount
    Type: System.Int32
    The number of retries that have been performed for the apply transaction.

See Also

Reference

DbConnectionFailureEventArgs Class

Microsoft.Synchronization.Data Namespace