Serial.Connected Property
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: (
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.
InvalidValueExceptionThrows this exception if the requested COM port does not exist.
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