RangeValidator<T> Constructor (T, RangeBoundaryType, T, RangeBoundaryType, Boolean)
Initializes a new instance of the RangeValidator<T> class with fully specified bound constraints.
Namespace: Microsoft.Practices.EnterpriseLibrary.Validation.Validators
Assembly: Microsoft.Practices.EnterpriseLibrary.Validation (in Microsoft.Practices.EnterpriseLibrary.Validation.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
protected RangeValidator(
T lowerBound,
RangeBoundaryType lowerBoundType,
T upperBound,
RangeBoundaryType upperBoundType,
bool negated
)
'Declaration
Protected Sub New (
lowerBound As T,
lowerBoundType As RangeBoundaryType,
upperBound As T,
upperBoundType As RangeBoundaryType,
negated As Boolean
)
protected:
RangeValidator(
T lowerBound,
RangeBoundaryType lowerBoundType,
T upperBound,
RangeBoundaryType upperBoundType,
bool negated
)
Parameters
- lowerBound
Type: T
The lower bound.
- lowerBoundType
Type: Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RangeBoundaryType
The indication of how to perform the lower bound check.
- upperBound
Type: T
The upper bound.
- upperBoundType
Type: Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RangeBoundaryType
The indication of how to perform the upper bound check.
- negated
Type: System.Boolean
True if the validator must negate the result of the validation.
See Also
RangeValidator<T> Overload
Microsoft.Practices.EnterpriseLibrary.Validation.Validators Namespace
Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RangeBoundaryType