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: 6.0.0.0 (6.6.9999.9999)
Syntax
bool Connected { get; set; }

Property Value

Boolean
if connected to the hardware; otherwise, .
Exceptions
ExceptionCondition
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. Include sufficient detail in the message text to enable the issue to be accurately diagnosed by someone other than yourself.
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