Dela via


SqlRetryIntervalBaseEnumerator Constructors

Definition

Overloads

SqlRetryIntervalBaseEnumerator()

Initializes a new instance of the SqlRetryIntervalBaseEnumerator class with a default value of zero for the gap time, minimum, and maximum interval time.

SqlRetryIntervalBaseEnumerator(TimeSpan, TimeSpan, TimeSpan)

Initializes a new instance of the SqlRetryIntervalBaseEnumerator class.

SqlRetryIntervalBaseEnumerator()

Initializes a new instance of the SqlRetryIntervalBaseEnumerator class with a default value of zero for the gap time, minimum, and maximum interval time.

public:
 SqlRetryIntervalBaseEnumerator();
public SqlRetryIntervalBaseEnumerator ();
Public Sub New ()

Applies to

SqlRetryIntervalBaseEnumerator(TimeSpan, TimeSpan, TimeSpan)

Initializes a new instance of the SqlRetryIntervalBaseEnumerator class.

public:
 SqlRetryIntervalBaseEnumerator(TimeSpan timeInterval, TimeSpan maxTime, TimeSpan minTime);
public SqlRetryIntervalBaseEnumerator (TimeSpan timeInterval, TimeSpan maxTime, TimeSpan minTime);
new Microsoft.Data.SqlClient.SqlRetryIntervalBaseEnumerator : TimeSpan * TimeSpan * TimeSpan -> Microsoft.Data.SqlClient.SqlRetryIntervalBaseEnumerator
Public Sub New (timeInterval As TimeSpan, maxTime As TimeSpan, minTime As TimeSpan)

Parameters

timeInterval
TimeSpan

The gap time used to calculate the time delay before each attempt.

maxTime
TimeSpan

The maximum time allowed as a gap time.

minTime
TimeSpan

The minimum time allowed as a gap time.

Exceptions

The supplied arguments failed Validate(TimeSpan, TimeSpan, TimeSpan) validation.

Applies to