Метод | Описание | |
---|---|---|
FormatErrorMessage ( string name ) : string |
Applies formatting to an error message, based on the data field where the error occurred.
|
|
RequiredAttribute ( ) : System |
Initializes a new instance of the System.ComponentModel.DataAnnotations.RequiredAttribute class whose error message is localized. ErrorMessage is set to: The {0} field is required.
|
|
RequiredAttribute ( string errorMessage ) : System |
Initializes a new instance of the System.ComponentModel.DataAnnotations.RequiredAttribute class whose error message is localized.
|
public FormatErrorMessage ( string name ) : string | ||
name | string | The name to include in the formatted message. |
Результат | string |
public RequiredAttribute ( string errorMessage ) : System | ||
errorMessage | string | An error message to associate with a validation control if validation fails. |
Результат | System |