C# Class Adf.Base.Validation.MaxLengthAttribute

Inheritance: System.Attribute, IPropertyValidator
Afficher le fichier Open project: NLADP/ADF

Méthodes publiques

Méthode Description
IsValid ( PropertyInfo propertyToValidate, object value ) : ValidationResult

Determines whether the specified value is valid for the supplied property.

MaxLengthAttribute ( int length ) : System

Creates a new MaxLengthAttribute instance with the supplied length.

Method Details

IsValid() public méthode

Determines whether the specified value is valid for the supplied property.
public IsValid ( PropertyInfo propertyToValidate, object value ) : ValidationResult
propertyToValidate System.Reflection.PropertyInfo The supplied property.
value object The supplied value.
Résultat ValidationResult

MaxLengthAttribute() public méthode

Creates a new MaxLengthAttribute instance with the supplied length.
public MaxLengthAttribute ( int length ) : System
length int The supplied length.
Résultat System