Метод | Описание | |
---|---|---|
ApplyBrowserValidation ( |
Applies the browser validation by setting up one or more input rules on IBrowserValidationGenerator.
|
|
IsValid ( object instance, object fieldValue ) : bool |
Validate that the property value matches the length requirements.
|
|
LengthValidator ( int exactLength ) : System |
Initializes a new exact length validator.
|
|
LengthValidator ( int minLength, int maxLength ) : System |
Initializes a new range based length validator.
|
Метод | Описание | |
---|---|---|
BuildErrorMessage ( ) : string |
Builds the error message.
|
public ApplyBrowserValidation ( |
||
config | The config. | |
inputType | InputElementType | Type of the input. |
generator | IBrowserValidationGenerator | The generator. |
attributes | IDictionary | The attributes. |
target | string | The target. |
Результат | void |
public IsValid ( object instance, object fieldValue ) : bool | ||
instance | object | |
fieldValue | object | |
Результат | bool |
public LengthValidator ( int exactLength ) : System | ||
exactLength | int | The exact length required. |
Результат | System |
public LengthValidator ( int minLength, int maxLength ) : System | ||
minLength | int | The minimum length, or |
maxLength | int | The maximum length, or |
Результат | System |