IsValidSlotNumber Method
IsValidSlotNumber(Byte)
Is the given number a valid slot number?
C#
public static bool IsValidSlotNumber(byte slotNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | slotNumber | The number to check. |
Returns
System.Boolean
True if slotNumber
is a valid PIV slot, or False otherwise.
Remarks
This verifies that a number given is a valid slot number. For example,
if the input is 0x9A
, it will return true
. If the input
is 0x01
or 0x77
, it will return false
.
See the User's Manual entry on PIV slots for more details on each of the possible slots.