Click or drag to resize

SwitchMaxSwitchValue Method

Returns the maximum value for this switch device, this must be greater than MinSwitchValue(Int16).

Namespace:  ASCOM.DriverAccess
Assembly:  ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
Syntax
public double MaxSwitchValue(
	short id
)

Parameters

id
Type: SystemInt16
The device whose value must be returned

Return Value

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

Implements

ISwitchV2MaxSwitchValue(Int16)
Exceptions
ExceptionCondition
InvalidValueExceptionIf id is outside the range 0 to MaxSwitch - 1
NotConnectedExceptionIf the device is not connected
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. The device did not successfully complete the request.
Remarks

Two state devices should return 1.0 as their maximum value.

This method was first introduced in Version 2.

See Also