Share via


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

Represents logic used to validate an instance of T.

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

Syntax

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

Type Parameters

  • T
    The type of objects the can be validated.

Remarks

Generic validators will still answer the non-generic validation requests, logging a failure when the validation target is not compatible with the T.

Inheritance Hierarchy

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

See Also

Validator<T> Members

Microsoft.Practices.EnterpriseLibrary.Validation Namespace

Microsoft.Practices.EnterpriseLibrary.Validation.Validator

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.