Udostępnij za pośrednictwem


ValueValidator<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.

Base class for strongly typed validators on simple values.

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

Syntax

'Declaration
PublicMustInheritClassValueValidator(Of T) _
    Inherits Validator(Of T)
publicabstractclassValueValidator<T> : Validator<T>
generic<typename T>
publicref classValueValidatorabstract : public Validator<T>
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of value to validate.

Remarks

Validating values of types different that T results in a validation 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.ContainsCharactersValidator
        Microsoft.Practices.EnterpriseLibrary.Validation.Validators.DomainValidator<T>
        Microsoft.Practices.EnterpriseLibrary.Validation.Validators.EnumConversionValidator
        Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RangeValidator<T>
        Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RegexValidator
        Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RelativeDateTimeValidator
        Microsoft.Practices.EnterpriseLibrary.Validation.Validators.StringLengthValidator
        Microsoft.Practices.EnterpriseLibrary.Validation.Validators.TypeConversionValidator

See Also

ValueValidator<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.