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: 6.0.0.0 (6.2.0.2774)
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