C# Class System.ComponentModel.DataAnnotations.EqualToAttribute

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

Méthodes publiques

Méthode Description
EqualToAttribute ( string otherProperty ) : System

Creates a new instance of EqualToAttribute

EqualToAttribute ( string errorMessage, string otherProperty ) : System

Creates a new instance of EqualToAttribute

FormatErrorMessage ( string name ) : string

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

Méthodes protégées

Méthode Description
IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult

Method Details

EqualToAttribute() public méthode

Creates a new instance of EqualToAttribute
public EqualToAttribute ( string otherProperty ) : System
otherProperty string
Résultat System

EqualToAttribute() public méthode

Creates a new instance of EqualToAttribute
public EqualToAttribute ( string errorMessage, string otherProperty ) : System
errorMessage string
otherProperty 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() protected méthode

protected IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult
value object
validationContext System.ComponentModel.DataAnnotations.ValidationContext
Résultat System.ComponentModel.DataAnnotations.ValidationResult