Show / Hide Table of Contents

AddOption Method

AddOption(string, bool)

Add an entry to the list of options. Once an entry is added to the list, it is not possible to remove it.

C#
public void AddOption(string optionKey, bool optionValue)

Parameters

Type Name Description
string optionKey

The option to add. This is the key of the option key/value pair.

bool optionValue

The value this option will possess.

Exceptions

Type Condition
ArgumentNullException

The optionKey arg is null.

Remarks

If the Options list already contains an entry with the given optionKey, this method will replace it.

The standard lists two option keys: "up" and "uv". Any other option on a YubiKey will yield an error. In addition, YubiKeys that are not BIO series will not allow "uv".

In this article
Back to top Generated by DocFX