Метод | Описание | |
---|---|---|
Build ( ) : IValidator |
Constructs and configures an IValidator instance based on the properties set on the attribute instance.
|
|
ValidateLengthAttribute ( int exactLength ) : System |
Initializes a new exact length validator.
|
|
ValidateLengthAttribute ( int exactLength, String errorMessage ) : System |
Initializes a new exact length validator.
|
|
ValidateLengthAttribute ( int minLength, int maxLength ) : System |
Initializes a new range based length validator.
|
|
ValidateLengthAttribute ( int minLength, int maxLength, String errorMessage ) : System |
Initializes a new range based length validator.
|
public ValidateLengthAttribute ( int exactLength ) : System | ||
exactLength | int | The exact length required. |
Результат | System |
public ValidateLengthAttribute ( int exactLength, String errorMessage ) : System | ||
exactLength | int | The exact length required. |
errorMessage | String | The error message to be displayed if the validation fails. |
Результат | System |
public ValidateLengthAttribute ( int minLength, int maxLength ) : System | ||
minLength | int | The minimum length, or |
maxLength | int | The maximum length, or |
Результат | System |
public ValidateLengthAttribute ( int minLength, int maxLength, String errorMessage ) : System | ||
minLength | int | The minimum length, or |
maxLength | int | The maximum length, or |
errorMessage | String | The error message to be displayed if the validation fails. |
Результат | System |