SqlRetryingEventArgs Class

Definition

Represents the set of arguments passed to the Retrying event.

public ref class SqlRetryingEventArgs sealed : EventArgs
public sealed class SqlRetryingEventArgs : EventArgs
type SqlRetryingEventArgs = class
    inherit EventArgs
Public NotInheritable Class SqlRetryingEventArgs
Inherits EventArgs
Inheritance
SqlRetryingEventArgs

Constructors

SqlRetryingEventArgs(Int32, TimeSpan, IList<Exception>)

Initializes a new instance of the SqlRetryingEventArgs class.

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