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

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

공개 메소드들

메소드 설명
FormatErrorMessage ( string name ) : string

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

IntegerAttribute ( ) : System

The default message is "The field {0} should be a positive or negative non-decimal number."

IntegerAttribute ( string errorMessage ) : System

Speicify a custom localizable error message

IsValid ( object value ) : bool

Determines whether the specified value of the object is valid.

메소드 상세

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

IntegerAttribute() 공개 메소드

The default message is "The field {0} should be a positive or negative non-decimal number."
public IntegerAttribute ( ) : System
리턴 System

IntegerAttribute() 공개 메소드

Speicify a custom localizable error message
public IntegerAttribute ( string errorMessage ) : System
errorMessage string
리턴 System

IsValid() 공개 메소드

Determines whether the specified value of the object is valid.
public IsValid ( object value ) : bool
value object The value of the object to validate.
리턴 bool