Click or drag to resize
SerialConnected Property
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.2.0.2774)
Syntax
public bool Connected { get; set; }

Property Value

Type: Boolean
Connected state of the serial port.

Return Value

Type: Boolean
True if the serial port is connected.
Exceptions
ExceptionCondition
InvalidValueExceptionThrows this exception if the requested COM port does not exist.
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.
See Also