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 an ASCOM.PropertyNotImplementedException.

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

The driver must put the camera in a mode that will start producing a constant stream of video frames when a connection has been established. For example a digital camera that can operate as both a CCD camera and a video camera must be set in a video mode before the call Connected = true returns.

Exceptions

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

See Also