Show / Hide Table of Contents

AddOption Method

AddOption(string, bool)

Add an entry to the list of options.

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.

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.

In This Article
  • Remarks
Back to top Generated by DocFX