Switch.MinSwitchValue Method
Click or drag to resize

SwitchMinSwitchValue Method

Returns the minimum value for this switch device, this must be less than MaxSwitchValue(Int16).

Namespace:  ASCOM.DriverAccess
Assembly:  ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 6.0.0.0 (6.4.0.2624)
Syntax
public double MinSwitchValue(
	short id
)

Parameters

id
Type: SystemInt16
The device whose value should be returned

Return Value

Type: Double
The minimum value to which this device can be set or a read only sensor will return.

Implements

ISwitchV2MinSwitchValue(Int16)
Exceptions
ExceptionCondition
InvalidValueExceptionIf id is outside the range 0 to MaxSwitch - 1
Remarks

Two state devices should return 0.0 as their minimum value.

This method was first introduced in Version 2.

See Also