C# 클래스 Adf.Base.Validation.MaxLengthAttribute

상속: System.Attribute, IPropertyValidator
파일 보기 프로젝트 열기: NLADP/ADF

공개 메소드들

메소드 설명
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.

메소드 상세

IsValid() 공개 메소드

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.
리턴 ValidationResult

MaxLengthAttribute() 공개 메소드

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