Show / Hide Table of Contents

IsValidSlotNumber Method

IsValidSlotNumber(byte)

Is the given number a valid slot number?

C#
public static bool IsValidSlotNumber(byte slotNumber)

Parameters

Type Name Description
byte slotNumber

The number to check.

Returns

bool

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.

In this article
Back to top Generated by DocFX