Delen via


ValidationAttribute 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 an attribute that will validate a property or field. The class is abstract.

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field)> _
PublicMustInheritClassValidationAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field)]
publicabstractclassValidationAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property|AttributeTargets::Field)]
publicref classValidationAttributeabstract : public Attribute
publicabstractclass ValidationAttribute extends Attribute

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.ValidationAttribute
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.AssertRangeAttribute
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.CustomAttributesValidationAttribute
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.FileValidationAttribute
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.MaximumLengthAttribute
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.MinimumLengthAttribute
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.ProtectionProviderValidationAttribute
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.RegexAttribute
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.RequiredAttribute
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.TypeValidationAttribute
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation.UniqueNameAttribute
      Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.Design.Filters.PriorityFilterMaximumPriorityValidationAttribute
      Microsoft.Practices.EnterpriseLibrary.PolicyInjection.CallHandlers.Configuration.Design.LogCategoriesAttribute
      Microsoft.Practices.EnterpriseLibrary.PolicyInjection.Configuration.Design.MatchingRules.MatchDataAttribute
      Microsoft.Practices.EnterpriseLibrary.PolicyInjection.Configuration.Design.MatchingRules.ParameterTypesValidationAttribute
      Microsoft.Practices.EnterpriseLibrary.PolicyInjection.Configuration.Design.MatchingRules.PropertyMatchDataAttribute
      Microsoft.Practices.EnterpriseLibrary.Validation.Configuration.Design.ValidatorNodes.ValidRegexAttribute

See Also

ValidationAttribute Members

Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation 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.