C# Class System.ComponentModel.DataAnnotations.IntegerAttribute

Inheritance: System.ComponentModel.DataAnnotations.DataTypeAttribute
Afficher le fichier Open project: adaptabi/i18N-Complete Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

FormatErrorMessage() public méthode

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.
Résultat string

IntegerAttribute() public méthode

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

IntegerAttribute() public méthode

Speicify a custom localizable error message
public IntegerAttribute ( string errorMessage ) : System
errorMessage string
Résultat System

IsValid() public méthode

Determines whether the specified value of the object is valid.
public IsValid ( object value ) : bool
value object The value of the object to validate.
Résultat bool