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: 3c9121baba46811fe6e53a58a05935662261416d
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