Partager via


ValidationAttribute Class

Defines the type of attribute to apply this configuration property or field.

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple := True)> _
Public Class ValidationAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = true)]
public class ValidationAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property|AttributeTargets::Field, AllowMultiple = true)]
public ref class ValidationAttribute : public Attribute
public class ValidationAttribute extends Attribute

Remarks

This attribute is applied to create validators for use in the configuration design-time.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design.Validation.ValidationAttribute

See Also

ValidationAttribute Members

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design.Validation Namespace