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.1.1.2619)

Syntax

C#
public string GetSwitchName(
	short id
)
Visual Basic
Public Function GetSwitchName ( _
	id As Short _
) As String
Visual C++
public:
virtual String^ GetSwitchName(
	short id
) sealed

Parameters

id
Type: System..::..Int16
The device number to return

Return Value

The name of the device

Implements

ISwitchV2..::..GetSwitchName(Int16)

Exceptions

ExceptionCondition
ASCOM..::..InvalidValueExceptionIf id is outside the range 0 to MaxSwitch - 1

See Also