AddOption Method
AddOption(String, Boolean)
Add an entry to the list of options.
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.
Note that the standard specifies valid option keys. Currently they are "rk", "up", and "uv". This method will accept any key given and pass it to the YubiKey. If an invalid key is used, the YubiKey will return an error.