Click or drag to resize
SwitchGetSwitchName Method
Return the name of switch device n. This method is mandatory.

Namespace: ASCOM.DriverAccess
Assembly: ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 6.0.0.0 (6.2.0.2774)
Syntax
public string GetSwitchName(
	short id
)

Parameters

id
Type: SystemInt16
The device number to return

Return Value

Type: String
The name of the device

Implements

ISwitchV2GetSwitchName(Int16)
Exceptions
ExceptionCondition
InvalidValueExceptionIf id is outside the range 0 to MaxSwitch - 1
See Also