메소드 | 설명 | |
---|---|---|
FormatErrorMessage ( string name ) : string |
Formats the error message that is displayed when range validation fails.
|
|
RangeAttribute ( Type type, string minimum, string maximum ) : System |
Initializes a new instance of the System.ComponentModel.DataAnnotations.RangeAttribute class by using the specified minimum and maximum values whose error message is localized. ErrorMessage is set to: The field {0} must be between {1} and {2}.
|
|
RangeAttribute ( double minimum, double maximum ) : System |
Initializes a new instance of the System.ComponentModel.DataAnnotations.RangeAttribute class by using the specified minimum and maximum values whose error message is localized. ErrorMessage is set to: The field {0} must be between {1} and {2}.
|
|
RangeAttribute ( int minimum, int maximum ) : System |
Initializes a new instance of the System.ComponentModel.DataAnnotations.RangeAttribute class by using the specified minimum and maximum values whose error message is localized. ErrorMessage is set to: The field {0} must be between {1} and {2}.
|
|
RangeAttribute ( string errorMessage, Type type, string minimum, string maximum ) : System |
Initializes a new instance of the System.ComponentModel.DataAnnotations.RangeAttribute class by using the specified minimum and maximum values whose error message is localized.
|
|
RangeAttribute ( string errorMessage, double minimum, double maximum ) : System |
Initializes a new instance of the System.ComponentModel.DataAnnotations.RangeAttribute class by using the specified minimum and maximum values whose error message is localized.
|
|
RangeAttribute ( string errorMessage, int minimum, int maximum ) : System |
Initializes a new instance of the System.ComponentModel.DataAnnotations.RangeAttribute class by using the specified minimum and maximum values whose error message is localized.
|
public FormatErrorMessage ( string name ) : string | ||
name | string | The name of the field that caused the validation failure. |
리턴 | string |
public RangeAttribute ( Type type, string minimum, string maximum ) : System | ||
type | Type | Specifies the type of the object to test. |
minimum | string | Specifies the minimum value allowed for the data field value. |
maximum | string | Specifies the maximum value allowed for the data field value. |
리턴 | System |
public RangeAttribute ( double minimum, double maximum ) : System | ||
minimum | double | Specifies the minimum value allowed for the data field value. |
maximum | double | Specifies the maximum value allowed for the data field value. |
리턴 | System |
public RangeAttribute ( int minimum, int maximum ) : System | ||
minimum | int | Specifies the minimum value allowed for the data field value. |
maximum | int | Specifies the maximum value allowed for the data field value. |
리턴 | System |
public RangeAttribute ( string errorMessage, Type type, string minimum, string maximum ) : System | ||
errorMessage | string | An error message to associate with a validation control if validation fails. |
type | Type | Specifies the type of the object to test. |
minimum | string | Specifies the minimum value allowed for the data field value. |
maximum | string | Specifies the maximum value allowed for the data field value. |
리턴 | System |
public RangeAttribute ( string errorMessage, double minimum, double maximum ) : System | ||
errorMessage | string | An error message to associate with a validation control if validation fails. |
minimum | double | Specifies the minimum value allowed for the data field value. |
maximum | double | Specifies the maximum value allowed for the data field value. |
리턴 | System |
public RangeAttribute ( string errorMessage, int minimum, int maximum ) : System | ||
errorMessage | string | An error message to associate with a validation control if validation fails. |
minimum | int | Specifies the minimum value allowed for the data field value. |
maximum | int | Specifies the maximum value allowed for the data field value. |
리턴 | System |