Share via


SqlRetryIntervalBaseEnumerator Class

Definition

Generates a sequence of time intervals.

public ref class SqlRetryIntervalBaseEnumerator abstract : ICloneable, System::Collections::Generic::IEnumerator<TimeSpan>
public abstract class SqlRetryIntervalBaseEnumerator : ICloneable, System.Collections.Generic.IEnumerator<TimeSpan>
type SqlRetryIntervalBaseEnumerator = class
    interface IEnumerator<TimeSpan>
    interface IDisposable
    interface IEnumerator
    interface ICloneable
type SqlRetryIntervalBaseEnumerator = class
    interface IEnumerator<TimeSpan>
    interface IEnumerator
    interface IDisposable
    interface ICloneable
Public MustInherit Class SqlRetryIntervalBaseEnumerator
Implements ICloneable, IEnumerator(Of 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

IEnumerator.Current

Applies to