Method | Description | |
---|---|---|
Build ( ) : IValidator |
Constructs and configures an IValidator instance based on the properties set on the attribute instance.
|
|
ValidateRangeAttribute ( System.DateTime min, System.DateTime max ) : System |
Initializes a DateTime-based range validator.
|
|
ValidateRangeAttribute ( System.DateTime min, System.DateTime max, string errorMessage ) : System |
Initializes a DateTime-based range validator.
|
|
ValidateRangeAttribute ( RangeValidationType type, object min, object max ) : System |
Initializes a range validator of a specified type.
|
|
ValidateRangeAttribute ( RangeValidationType type, object min, object max, string errorMessage ) : System |
Initializes a range validator of a specified type.
|
|
ValidateRangeAttribute ( decimal min, decimal max ) : System |
Initializes an decimal-based range validator.
|
|
ValidateRangeAttribute ( decimal min, decimal max, string errorMessage ) : System |
Initializes an decimal-based range validator.
|
|
ValidateRangeAttribute ( int min, int max ) : System |
Initializes an integer-based range validator.
|
|
ValidateRangeAttribute ( int min, int max, string errorMessage ) : System |
Initializes an integer-based range validator.
|
|
ValidateRangeAttribute ( string min, string max ) : System |
Initializes a string-based range validator.
|
|
ValidateRangeAttribute ( string min, string max, string errorMessage ) : System |
Initializes a string-based range validator.
|
public ValidateRangeAttribute ( System.DateTime min, System.DateTime max ) : System | ||
min | System.DateTime | The minimum value, or |
max | System.DateTime | The maximum value, or |
return | System |
public ValidateRangeAttribute ( System.DateTime min, System.DateTime max, string errorMessage ) : System | ||
min | System.DateTime | The minimum value, or |
max | System.DateTime | The maximum value, or |
errorMessage | string | The error message to be displayed if the validation fails. |
return | System |
public ValidateRangeAttribute ( RangeValidationType type, object min, object max ) : System | ||
type | RangeValidationType | The data type to be used by the range validator. |
min | object | The minimum value, or |
max | object | The maximum value, or |
return | System |
public ValidateRangeAttribute ( RangeValidationType type, object min, object max, string errorMessage ) : System | ||
type | RangeValidationType | The data type to be used by the range validator. |
min | object | The minimum value, or |
max | object | The maximum value, or |
errorMessage | string | The error message to be displayed if the validation fails. |
return | System |
public ValidateRangeAttribute ( decimal min, decimal max ) : System | ||
min | decimal | The minimum value, or |
max | decimal | The maximum value, or |
return | System |
public ValidateRangeAttribute ( decimal min, decimal max, string errorMessage ) : System | ||
min | decimal | The minimum value, or |
max | decimal | The maximum value, or |
errorMessage | string | The error message to be displayed if the validation fails. |
return | System |
public ValidateRangeAttribute ( int min, int max ) : System | ||
min | int | The minimum value, or |
max | int | The maximum value, or |
return | System |
public ValidateRangeAttribute ( int min, int max, string errorMessage ) : System | ||
min | int | The minimum value, or |
max | int | The maximum value, or |
errorMessage | string | The error message to be displayed if the validation fails. |
return | System |
public ValidateRangeAttribute ( string min, string max ) : System | ||
min | string | The minimum value, or |
max | string | The maximum value, or |
return | System |
public ValidateRangeAttribute ( string min, string max, string errorMessage ) : System | ||
min | string | The minimum value, or |
max | string | The maximum value, or |
errorMessage | string | The error message to be displayed if the validation fails. |
return | System |