Set true to connect to the device. Set false to disconnect from the device. You can also read the property to check whether it is connected.

Namespace: ASCOM.DeviceInterface
Assembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
bool Connected { get; set; }
Visual Basic
Property Connected As Boolean
	Get
	Set
Visual C++
property bool Connected {
	bool get ();
	void set (bool value);
}

Field Value

true if connected; otherwise, false.

Remarks

Must be implemented, must not throw a PropertyNotImplementedException.

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

Exceptions

ExceptionCondition
DriverExceptionMust throw an exception if the call was not successful

See Also