SqlRetryingEventArgs Class

Definition

Represents the set of arguments passed to the Retrying event.

C#
public sealed class SqlRetryingEventArgs : EventArgs
Inheritance
SqlRetryingEventArgs

Constructors

Properties

Cancel

Gets or sets a value that indicates whether the retry logic should be canceled.

Delay

Gets the current waiting time as a TimeSpan object.

Exceptions

Gets the list of exceptions since the first attempt failure.

RetryCount

Retry-attempt-number, after the first exception occurrence.

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