Click or drag to resize

SwitchSetSwitchName Method

Sets a switch device name to a specified value. If the device name cannot be set by the application this must return the MethodNotImplementedException .

Namespace:  ASCOM.DriverAccess
Assembly:  ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
Syntax
public void SetSwitchName(
	short id,
	string name
)

Parameters

id
Type: SystemInt16
The number of the device whose name is to be set
name
Type: SystemString
The name of the device

Implements

ISwitchV2SetSwitchName(Int16, String)
Exceptions
ExceptionCondition
MethodNotImplementedExceptionIf the device name cannot be set in the application code.
InvalidValueExceptionIf id is outside the range 0 to MaxSwitch - 1
See Also