Delen via


SqlRetryingEventArgs(Int32, TimeSpan, IList<Exception>) Constructor

Definition

Initializes a new instance of the SqlRetryingEventArgs class.

public:
 SqlRetryingEventArgs(int retryCount, TimeSpan delay, System::Collections::Generic::IList<Exception ^> ^ exceptions);
public SqlRetryingEventArgs (int retryCount, TimeSpan delay, System.Collections.Generic.IList<Exception> exceptions);
new Microsoft.Data.SqlClient.SqlRetryingEventArgs : int * TimeSpan * System.Collections.Generic.IList<Exception> -> Microsoft.Data.SqlClient.SqlRetryingEventArgs
Public Sub New (retryCount As Integer, delay As TimeSpan, exceptions As IList(Of Exception))

Parameters

retryCount
Int32

The current retry attempt count.

delay
TimeSpan

The delay that indicates how long the current thread will be suspended before the next iteration is invoked.

exceptions
IList<Exception>

The list of exceptions since the first retry that caused the retry logic to re-execute the function.

Applies to