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

Definition

Initializes a new instance of the SqlRetryingEventArgs class.

C#
public SqlRetryingEventArgs (int retryCount, TimeSpan delay, System.Collections.Generic.IList<Exception> exceptions);

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

Toode Versioonid
SqlClient .NET Core 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Framework 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Standard 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2