C# 클래스 GreaterThanAttributeSample.Validation.GreaterThanAttribute

상속: System.ComponentModel.DataAnnotations.ValidationAttribute
파일 보기 프로젝트 열기: tugberkugurlu/ProWebAPI.Samples

공개 메소드들

메소드 설명
FormatErrorMessage ( string name ) : string
GreaterThanAttribute ( string otherProperty ) : System

보호된 메소드들

메소드 설명
IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult

비공개 메소드들

메소드 설명
GetSecondValue ( Type type, object instance ) : IComparable

메소드 상세

FormatErrorMessage() 공개 메소드

public FormatErrorMessage ( string name ) : string
name string
리턴 string

GreaterThanAttribute() 공개 메소드

public GreaterThanAttribute ( string otherProperty ) : System
otherProperty string
리턴 System

IsValid() 보호된 메소드

protected IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult
value object
validationContext System.ComponentModel.DataAnnotations.ValidationContext
리턴 System.ComponentModel.DataAnnotations.ValidationResult