Show / Hide Table of Contents

IsExtensionSupported Method

IsExtensionSupported(string)

Determine if the given extension is listed in this AuthenticatorInfo.

C#
public bool IsExtensionSupported(string extension)

Parameters

Type Name Description
string extension

Returns

bool

Remarks

Because the Extensions property can be null (this happens if a YubiKey does not specify any extensions), to check for any particular extension requires first checking for null. If it is not null, then it is necessary to check to see if that extension is listed.

This method offers a convenient way to determine if an extension is listed. This method will determine if Extensions is null. If it is null, it will return false. If not, it will check to see if the given value is listed. If so, return true, otherwise return false.

In this article
Back to top Generated by DocFX