Checks a PIN whether it is acceptable according to this PIN control.

Namespace: CardWerk.SmartCard
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)

Public Function IsAcceptablePin( _ 
ByVal sPin As String
) As Boolean
This language is not supported or no code example is available.
public bool IsAcceptablePin( 
string sPin 
)
This language is not supported or no code example is available.
public:  
bool IsAcceptablePin( 
String^ sPin 
)
This language is not supported or no code example is available.
public function IsAcceptablePin( 
sPin : String 
) : boolean;
This language is not supported or no code example is available.

Parameters

sPin
Type: string

The PIN to be checked.

Return Value

Type: bool

Returns true if the PIN is acceptable and false if not.

Exception type Condition

ArgumentNullException

Thrown when one or more required arguments are null.

It is checked whether the PIN length is acceptable according to MinLength and MaxLength and whether the PIN can be encoded as required (i.e. is numeric or alphanumeric just as required).

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0