The minimum acceptable length of the PIN.

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

Public Property MinLength() As Integer
This language is not supported or no code example is available.
public int MinLength {get; set;}
This language is not supported or no code example is available.
public:  
property int MinLength { 
int get( ); 
void set( 
int value 
); 
}
This language is not supported or no code example is available.
public function get MinLength() : int
public function set MinLength(value : int);
This language is not supported or no code example is available.

Property Value

Type: int

By default the minimum acceptable length of the PIN is determined by the chosen PIN encoding. Most of the time the default will be zero. The minimum length cannot be set to a negative value, but may be set to zero. If the selected PIN encoding is Format2PinBlock , then the minimum PIN length cannot be less than four or more than twelve. An attempt to set a value outside the required range for a Format2PinBlock will cause an ArgumentOutOfRangeException to be thrown. Input devices or dialogs may or may not implicitly honor this requirement.

Exception type Condition

ArgumentOutOfRangeException

Thrown when one or more arguments are outside the required range.

.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