Show / Hide Table of Contents

SwapSlots Method

SwapSlots()

Swaps the configurations in the short and long press slots.

C#
void SwapSlots()

Exceptions

Type Condition
InvalidOperationException

The SwapSlotsCommand failed or is not supported on this YubiKey.

Remarks

If either of the two slots is protected with an access code, this command will fail. In order to swap slot configurations, you will need to remove the access codes in a separate operation. After the swap, you can reapply the access codes, also in a separate operation.

In this article
Back to top Generated by DocFX