C# Class System.ComponentModel.DataAnnotations.DigitsAttribute

Inheritance: System.ComponentModel.DataAnnotations.DataTypeAttribute
Mostra file Open project: adaptabi/i18N-Complete Class Usage Examples

Public Methods

Method Description
DigitsAttribute ( ) : System

Creates a new instance of DigitsAttribute

DigitsAttribute ( string errorMessage ) : System

Creates a new instance of DigitsAttribute

FormatErrorMessage ( string name ) : string

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

IsValid ( object value ) : bool

Determines whether the specified value of the object is valid.

Method Details

DigitsAttribute() public method

Creates a new instance of DigitsAttribute
public DigitsAttribute ( ) : System
return System

DigitsAttribute() public method

Creates a new instance of DigitsAttribute
public DigitsAttribute ( string errorMessage ) : System
errorMessage string
return System

FormatErrorMessage() public method

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.
return string

IsValid() public method

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