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: 6.0.0.0 (6.4.0.2624)
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