RangeValidator<T> Constructor (T, RangeBoundaryType, T, RangeBoundaryType, String, Boolean)

Initializes a new instance of the RangeValidator<T> class with fully specified bound constraints and a message template.

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

public RangeValidator(
    T lowerBound,
    RangeBoundaryType lowerBoundType,
    T upperBound,
    RangeBoundaryType upperBoundType,
    string messageTemplate,
    bool negated
)
'Declaration
Public Sub New ( 
    lowerBound As T,
    lowerBoundType As RangeBoundaryType,
    upperBound As T,
    upperBoundType As RangeBoundaryType,
    messageTemplate As String,
    negated As Boolean
)
public:
RangeValidator(
    T lowerBound, 
    RangeBoundaryType lowerBoundType, 
    T upperBound, 
    RangeBoundaryType upperBoundType, 
    String^ messageTemplate, 
    bool negated
)

Parameters

  • lowerBound
    Type: T
    The lower bound.
  • upperBound
    Type: T
    The upper bound.
  • messageTemplate
    Type: System.String
    The message template to use when logging results.
  • negated
    Type: System.Boolean
    True if the validator must negate the result of the validation.

See Also

RangeValidator<T> Class

RangeValidator<T> Members

RangeValidator<T> Overload

Microsoft.Practices.EnterpriseLibrary.Validation.Validators Namespace

Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RangeBoundaryType