ValidatorAttribute Class

Describes the validation logic that must be applied to a language element when creating a Validator for a type.

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

public abstract class ValidatorAttribute : BaseValidationAttribute, 

Multiple validator attributes can be specified for a language element.

All the rules will be applied as an "And" composition unless the ValidatorCompositionAttribute overrides this behavior.

A ruleset can be specified for the attribute, as well as message overrides (either literal or resource based).