AddOption Method
AddOption(String, Boolean)
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 |
---|---|---|
System.String | optionKey | The option to add. This is the key of the option key/value pair. |
System.Boolean | optionValue | The value this option will possess. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
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".