SqlRetryIntervalBaseEnumerator Class

Definition

Generates a sequence of time intervals.

C#
public abstract class SqlRetryIntervalBaseEnumerator : ICloneable, System.Collections.Generic.IEnumerator<TimeSpan>
Inheritance
SqlRetryIntervalBaseEnumerator
Implements

Constructors

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.

Properties

Current

Gets the element in the collection at the current position of the enumerator.

GapTimeInterval

The default gap time of each interval.

MaxTimeInterval

The maximum allowed time interval value.

MinTimeInterval

The minimum allowed time interval value.

Methods

Clone()

Creates a new object that is a copy of the current instance.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetNextInterval()

Calculates the next interval time.

MoveNext()

Advances the enumerator to the next element of the collection.

Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.

Validate(TimeSpan, TimeSpan, TimeSpan)

Validate the enumeration parameters.

Explicit Interface Implementations

Applies to

Proizvod Verzije
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