TimeSpanValidator Constructor (TimeSpan, TimeSpan)

 

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

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

public TimeSpanValidator(
	TimeSpan minValue,
	TimeSpan maxValue
)

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.

When the TimeSpanValidator constructor with two parameters is used, the TimeSpanValidator object validates that a TimeSpan value adheres to a specific range.

.NET Framework
Available since 2.0
Return to top
Show: