C# 클래스 System.ComponentModel.DataAnnotations.EqualToAttribute

상속: System.ComponentModel.DataAnnotations.ValidationAttribute
파일 보기 프로젝트 열기: adaptabi/i18N-Complete 1 사용 예제들

공개 메소드들

메소드 설명
EqualToAttribute ( string otherProperty ) : System

Creates a new instance of EqualToAttribute

EqualToAttribute ( string errorMessage, string otherProperty ) : System

Creates a new instance of EqualToAttribute

FormatErrorMessage ( string name ) : string

Applies formatting to an error message, based on the data field where the error occurred.

보호된 메소드들

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

메소드 상세

EqualToAttribute() 공개 메소드

Creates a new instance of EqualToAttribute
public EqualToAttribute ( string otherProperty ) : System
otherProperty string
리턴 System

EqualToAttribute() 공개 메소드

Creates a new instance of EqualToAttribute
public EqualToAttribute ( string errorMessage, string otherProperty ) : System
errorMessage string
otherProperty string
리턴 System

FormatErrorMessage() 공개 메소드

Applies formatting to an error message, based on the data field where the error occurred.
public FormatErrorMessage ( string name ) : string
name string The name to include in the formatted message.
리턴 string

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