Compartilhar via


RangeValidator<T> Class

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Performs validation on T instances by comparing them to the specified boundaries.

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

Syntax

'Declaration
PublicClassRangeValidator(Of T As IComparable) _
    Inherits ValueValidator(Of T)
publicclassRangeValidator<T> : ValueValidator<T>
where T : IComparable
generic<typename T>
where T : IComparable
publicref classRangeValidator : public ValueValidator<T>
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the objects to compare. Must implement IComparable<T>.

Remarks

nulla null reference (Nothing in Visual Basic) is logged as a failure.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Validation.Validator
    Microsoft.Practices.EnterpriseLibrary.Validation.Validator<T>
      Microsoft.Practices.EnterpriseLibrary.Validation.Validators.ValueValidator<T>
        Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RangeValidator<T>
          Microsoft.Practices.EnterpriseLibrary.Validation.Validators.DateTimeRangeValidator
          Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RangeValidator

See Also

RangeValidator<T> Members

Microsoft.Practices.EnterpriseLibrary.Validation.Validators Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.