Share via


DateTimeRangeValidator Constructor (DateTime, DateTime)

Initializes a new instance of the DateTimeRangeValidator class with lower and upper bound constraints.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Validation.Validators
Assembly:  Microsoft.Practices.EnterpriseLibrary.Validation (in Microsoft.Practices.EnterpriseLibrary.Validation.dll)

Syntax

'Declaration
Public Sub New ( _
    lowerBound As DateTime, _
    upperBound As DateTime _
)
public DateTimeRangeValidator(
    DateTime lowerBound,
    DateTime upperBound
)
public:
DateTimeRangeValidator(
    DateTime lowerBound, 
    DateTime upperBound
)
public function DateTimeRangeValidator(
    lowerBound : DateTime, 
    upperBound : DateTime
)

Parameters

Remarks

Both bound checks will be Inclusive.

See Also

DateTimeRangeValidator Class

DateTimeRangeValidator Overload

Microsoft.Practices.EnterpriseLibrary.Validation.Validators Namespace