
HRESULT IsValid(
BSTRbstrType// in
BSTRbstrNumber// in
long *fValid// out
);
The IsValid function determines whether the instance is valid based on the credit-card number entered by the consumer for the mask. You can include your own validation algorithm to perform further validation on the credit-card number.
This function returns one of the following values.
| Value | Meaning |
|---|---|
| E_FAIL | Failure |
| E_OUTOFMEMORY | Insufficient memory |
| S_OK | Success |