Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Public Property MaxLength() As Integer
This language is not supported or no code example is available.
public int MaxLength {get; set;}
This language is not supported or no code example is available.
Property Value
Type: intBy default the maximum acceptable length of the PIN is derived from the encoding and the command template. If the maximum length is set to a value smaller than the minimum length, then the minimum length is set equal to the maximum length. The maximum length cannot be set to a negative value, and cannot be set to zero. If the selected PIN encoding is Format2PinBlock , then the maximum 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 |
---|---|
Thrown when one or more arguments are outside the required range. |