SetBioTemplateFriendlyName Method
SetBioTemplateFriendlyName(ReadOnlyMemory<Byte>, String)
Set the friendly name of a template. If the template already has a friendly name, this will replace it.
C#
public void SetBioTemplateFriendlyName(ReadOnlyMemory<byte> templateId, string friendlyName)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Byte> | templateId | The ID for the template which will be given the name. |
System.String | friendlyName | The friendly name you want to give the template. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The YubiKey rejects the friendly name, likely because it is too long. |
Remarks
If the template already has a friendly name, this method will replace it.
This method will not check to see if the YubiKey has a fingerprint entry with the given name already. In other words, using this method allows you to use the same friendly name for more than one template.