메소드 | 설명 | |
---|---|---|
FormatErrorMessage ( string name ) : string |
Formats the error message to display if the regular expression validation fails.
|
|
RegularExpressionAttribute ( string pattern ) : System |
Initializes a new instance of the System.ComponentModel.DataAnnotations.RegularExpressionAttribute class whose error message is localized. ErrorMessage is set to: The field {0} must match the regular expression '{1}'.
|
|
RegularExpressionAttribute ( string errorMessage, string pattern ) : System |
Initializes a new instance of the System.ComponentModel.DataAnnotations.RegularExpressionAttribute class whose error message is localized.
|
public FormatErrorMessage ( string name ) : string | ||
name | string | The name of the field that caused the validation failure. |
리턴 | string |
public RegularExpressionAttribute ( string pattern ) : System | ||
pattern | string | The regular expression that is used to validate the data field value. |
리턴 | System |
public RegularExpressionAttribute ( string errorMessage, string pattern ) : System | ||
errorMessage | string | An error message to associate with a validation control if validation fails. |
pattern | string | The regular expression that is used to validate the data field value. |
리턴 | System |