Show / Hide Table of Contents

SetLegacyDeviceConfigCommand Constructor

SetLegacyDeviceConfigCommand(YubiKeyCapabilities, byte, bool, int)

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.

byte challengeResponseTimeout

Value for ChallengeResponseTimeout.

bool touchEjectEnabled

Value for TouchEjectEnabled.

int autoEjectTimeout

Value for AutoEjectTimeout.

Exceptions

Type Condition
ArgumentException

Thrown if yubiKeyInterfaces contains unsupported flags.

ArgumentOutOfRangeException

Thrown when autoEjectTimeout is out of the valid range.

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.

In This Article
  • Remarks
  • Remarks
Back to top Generated by DocFX