Gets or sets the connected state of the ASCOM serial port.

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.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

Connected state of the serial port.

Return Value

True if the serial port is connected.

Implements

ISerial..::..Connected

Remarks

Set this property to True to connect to the serial (COM) port. You can read the property to determine if the object is connected.

Exceptions

ExceptionCondition
ASCOM.Utilities.Exceptions..::..InvalidValueExceptionThrows this exception if the requested COM port does not exist.

See Also