Share via


SqlRetryIntervalBaseEnumerator.Validate(TimeSpan, TimeSpan, TimeSpan) Method

Definition

Validate the enumeration parameters.

protected:
 virtual void Validate(TimeSpan timeInterval, TimeSpan maxTimeInterval, TimeSpan minTimeInterval);
protected virtual void Validate (TimeSpan timeInterval, TimeSpan maxTimeInterval, TimeSpan minTimeInterval);
abstract member Validate : TimeSpan * TimeSpan * TimeSpan -> unit
override this.Validate : TimeSpan * TimeSpan * TimeSpan -> unit
Protected Overridable Sub Validate (timeInterval As TimeSpan, maxTimeInterval As TimeSpan, minTimeInterval As TimeSpan)

Parameters

timeInterval
TimeSpan

The gap time of each interval. Must be between 0 and 120 seconds.

maxTimeInterval
TimeSpan

Maximum time interval value. Must be between 0 and 120 seconds.

minTimeInterval
TimeSpan

Minimum time interval value. Must be less than maximum time interval and between 0 and 120 seconds.

Exceptions

The supplied arguments failed validation.

Applies to