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.DriverAccess
Assembly: ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

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

Field Value

true if connected; otherwise, false.

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.

Exceptions

ExceptionCondition
ASCOM..::..DriverExceptionMust throw an exception if the call was not successful

See Also