Click or drag to resize

IDomeV2Connected Property

Set to connect to the device hardware. Set to disconnect from the device hardware. You can also read the property to check whether it is connected. This reports the current hardware state.

Namespace:  ASCOM.DeviceInterface
Assembly:  ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
Syntax
bool Connected { get; set; }

Property Value

Type: Boolean
if connected to the hardware; otherwise, .
Exceptions
ExceptionCondition
DriverExceptionMust throw if the connection attempt was not successful
Remarks

Must be implemented.

Do not use a NotConnectedException here, that exception is for use in other methods that require a connection in order to succeed.

The Connected property sets and reports the state of the hardware connection. For a hub this means that Connected will be when the first driver connects and will only return when all drivers have disconnected. A second driver may find that Connected is already true and setting Connected to does not report Connected as . This is not an error because the physical state is that the hardware connection is still active.

The property is idempotent; writing to the property multiple times will not cause an error.

See Also