Show / Hide Table of Contents

GetOptionValue Method

GetOptionValue(string)

Get the value of the given option in this AuthenticatorInfo.

C#
public OptionValue GetOptionValue(string option)

Parameters

Type Name Description
string option

Returns

OptionValue

An OptionValue enum that specifies the option as either True, False, NotSupported, or Unknown.

Remarks

An option can be "true", "false", or "not supported". This method will determine which value is appropriate for the given option.

The FIDO2 standard specifies that each option has a value, even if an authenticator does not list it. If an option is not listed, its value is a default, and the standard specifies default values for each option. This method will determine if an option is listed, and if so, return the listed value. If not, it will return the default value. A default value can be "true", "false", or "not supported".

If the option is unknown (not one of the standard-defined options), and it is not listed, this method will return "unknown".

In this article
Back to top Generated by DocFX