C# 클래스 CompareAttribute, i18N-Complete

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

공개 메소드들

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

Initializes a new instance of the T:System.Web.Mvc.CompareAttributeclass.

ErrorMessage is set to:

'{0}' and '{1}' do not match.

CompareAttribute ( string errorMessage, string otherProperty ) : System

Initializes a new instance of the T:System.Web.Mvc.CompareAttribute class.

FormatErrorMessage ( string name ) : string

Applies formatting to a specified error message.

메소드 상세

CompareAttribute() 공개 메소드

Initializes a new instance of the T:System.Web.Mvc.CompareAttributeclass.

ErrorMessage is set to:

'{0}' and '{1}' do not match.

public CompareAttribute ( string otherProperty ) : System
otherProperty string The property to compare with the current property.
리턴 System

CompareAttribute() 공개 메소드

Initializes a new instance of the T:System.Web.Mvc.CompareAttribute class.
public CompareAttribute ( string errorMessage, string otherProperty ) : System
errorMessage string An error message to associate with a validation control if validation fails.
otherProperty string The property to compare with the current property.
리턴 System

FormatErrorMessage() 공개 메소드

Applies formatting to a specified error message.
public FormatErrorMessage ( string name ) : string
name string The name of the field that caused the validation failure.
리턴 string