C# Class Adf.Base.Validation.MaxLengthAttribute

Inheritance: System.Attribute, IPropertyValidator
Datei anzeigen Open project: NLADP/ADF

Public Methods

Method 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 method

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.
return ValidationResult

MaxLengthAttribute() public method

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