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

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

공개 메소드들

메소드 설명
IsValid ( PropertyInfo propertyToValidate, object value ) : ValidationResult

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

MaxDataLengthAttribute ( int precision, int scale ) : System

Creates a new MaxLengthAttribute instance with the supplied data length.

비공개 메소드들

메소드 설명
HasMaxDataLength ( object value, int precision, int scale ) : bool

메소드 상세

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

MaxDataLengthAttribute() 공개 메소드

Creates a new MaxLengthAttribute instance with the supplied data length.
public MaxDataLengthAttribute ( int precision, int scale ) : System
precision int The supplied precision.
scale int The supplied scale.
리턴 System