TimeSpanValidator Constructor (TimeSpan, TimeSpan, Boolean)

 

Initializes a new instance of the TimeSpanValidator class, based on supplied parameters.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

Public Sub New (
	minValue As TimeSpan,
	maxValue As TimeSpan,
	rangeIsExclusive As Boolean
)

Parameters

minValue
Type: System.TimeSpan

A TimeSpan object that specifies the minimum time allowed to pass validation.

maxValue
Type: System.TimeSpan

A TimeSpan object that specifies the maximum time allowed to pass validation.

rangeIsExclusive
Type: System.Boolean

A Boolean value that specifies whether the validation range is exclusive.

The TimeSpanValidator constructor checks both the minimum and maximum TimeSpan values, as well as whether the validation range is exclusive. When the rangeIsExclusive parameter is set to true, the TimeSpan value must not be between the minValue and maxValue values.

.NET Framework
Available since 2.0
Return to top
Show: