SqlRetryIntervalBaseEnumerator.Validate(TimeSpan, TimeSpan, TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.