C# Class System.ComponentModel.DataAnnotations.CreditCardAttribute

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

Méthodes publiques

Méthode Description
CreditCardAttribute ( ) : System

Creates a new instance of CreditCardAttribute

CreditCardAttribute ( string errorMessage ) : System

Creates a new instance of CreditCardAttribute

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

CreditCardAttribute() public méthode

Creates a new instance of CreditCardAttribute
public CreditCardAttribute ( ) : System
Résultat System

CreditCardAttribute() public méthode

Creates a new instance of CreditCardAttribute
public CreditCardAttribute ( string errorMessage ) : System
errorMessage string
Résultat System

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

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