Click or drag to resize

SerialPort Property

Gets or sets the number of the ASCOM serial port (Default is 1, giving COM1 as the serial port name).

Namespace:  ASCOM.Utilities
Assembly:  ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
Syntax
public int Port { get; set; }

Property Value

Type: Int32
COM port number of the ASCOM serial port.

Return Value

Type: Int32
Integer, number of the ASCOM serial port
Remarks
This works for serial port names of the form COMnnn. Use PortName if your COM port name does not fit the form COMnnn.
See Also