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: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
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
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.
See Also