AddTransport Method
AddTransport(String)
Add an entry to the list of transports.
C#
public void AddTransport(string transport)
Parameters
Type | Name | Description |
---|---|---|
System.String | transport | The transport to add. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
Remarks
If there is no list yet when this method is called, one will be created. That is, even if the Transports property is null, you can call the method to add an entry.
The standard defines some specific strings to use with some transports. These specific strings are defined in the AuthenticatorTransports static class. For example, to add the USB transport, call
credentialId.AddTransport(AuthenticatorTransports.Usb);
The standard also specifies that is is permissible to add non-standard transports.