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