Export (0) Print
Expand All

DateTimeRangeValidator Constructor (DateTime, DateTime, Boolean)

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)

public DateTimeRangeValidator(
	DateTime lowerBound,
	DateTime upperBound,
	bool negated
)

Parameters

lowerBound
Type: System.DateTime
The lower bound.
upperBound
Type: System.DateTime
The upper bound.
negated
Type: System.Boolean
True if the validator must negate the result of the validation.

Both bound checks will be Inclusive.
Show:
© 2014 Microsoft