SerialConnected Property

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

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public bool Connected { get; set; }

Property Value

Boolean
Connected state of the serial port.

Return Value

Boolean
True if the serial port is 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

InvalidValueExceptionThrows this exception if the requested COM port does not exist.

See Also