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éthode | Description | |
---|---|---|
IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult |
|
public EqualToAttribute ( string otherProperty ) : System | ||
otherProperty | string | |
Résultat | System |
public EqualToAttribute ( string errorMessage, string otherProperty ) : System | ||
errorMessage | string | |
otherProperty | string | |
Résultat | System |
public FormatErrorMessage ( string name ) : string | ||
name | string | The name to include in the formatted message. |
Résultat | string |
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 |