IsExtensionSupported Method
IsExtensionSupported(String)
Determine if the given extension
is listed in this
AuthenticatorInfo
.
C#
public bool IsExtensionSupported(string extension)
Parameters
Type | Name | Description |
---|---|---|
System.String | extension |
Returns
System.Boolean
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
.