Метод | Описание | |
---|---|---|
ApplyBrowserValidation ( |
Applies the browser validation by setting up one or more input rules on IBrowserValidationGenerator.
|
|
CreditCardValidator ( ) : System |
Initializes a new credit card validator.
|
|
CreditCardValidator ( CardType allowedTypes ) : System |
Initializes a new credit card validator.
|
|
CreditCardValidator ( CardType allowedTypes, string exceptions ) : System |
Initializes a new credit card validator.
|
|
CreditCardValidator ( string exceptions ) : System |
Initializes a new credit card validator.
|
|
IsValid ( object instance, object fieldValue ) : bool |
Validate that the propety value matches a valid (formatted) credit card Note: null values are consider OK always.
|
Метод | Описание | |
---|---|---|
IsLuhnValid ( string cardNumber ) : bool | ||
IsValidCardType ( string cardNumber ) : bool |
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 CreditCardValidator ( CardType allowedTypes ) : System | ||
allowedTypes | CardType | The card types to accept. |
Результат | System |
public CreditCardValidator ( CardType allowedTypes, string exceptions ) : System | ||
allowedTypes | CardType | The card types to accept. |
exceptions | string | An array of card numbers to skip checking for (eg. gateway test numbers). Only digits should be provided for the exceptions. |
Результат | System |
public CreditCardValidator ( string exceptions ) : System | ||
exceptions | string | An array of card numbers to skip checking for (eg. gateway test numbers). Only digits should be provided for the exceptions. |
Результат | System |
public IsValid ( object instance, object fieldValue ) : bool | ||
instance | object | |
fieldValue | object | |
Результат | bool |