SetLegacyDeviceConfigCommand Constructor
SetLegacyDeviceConfigCommand(YubiKeyCapabilities, Byte, Boolean, Int32)
Initializes a new instance of the SetLegacyDeviceConfigCommand class.
C#
public SetLegacyDeviceConfigCommand(YubiKeyCapabilities yubiKeyInterfaces, byte challengeResponseTimeout, bool touchEjectEnabled, int autoEjectTimeout)
Parameters
Type | Name | Description |
---|---|---|
YubiKeyCapabilities | yubiKeyInterfaces | Value for YubiKeyInterfaces. |
System.Byte | challengeResponseTimeout | Value for ChallengeResponseTimeout. |
System.Boolean | touchEjectEnabled | Value for TouchEjectEnabled. |
System.Int32 | autoEjectTimeout | Value for AutoEjectTimeout. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if |
System.ArgumentOutOfRangeException | Thrown when |
Remarks
This command sends all configuration settings every time. Therefore all values must be provided every time.
SetLegacyDeviceConfigCommand(SetLegacyDeviceConfigBase)
Creates a new SetLegacyDeviceConfigCommand from another object which derives from SetLegacyDeviceConfigBase.
C#
public SetLegacyDeviceConfigCommand(SetLegacyDeviceConfigBase baseCommand)
Parameters
Type | Name | Description |
---|---|---|
SetLegacyDeviceConfigBase | baseCommand | The SetLegacyDeviceConfig base command object to copy from. |
Remarks
This constructor can be useful to switch between different application-specific implementations of the same base command.