SerialPort Property

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

Definition

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

Property Value

Int32
COM port number of the ASCOM serial port.

Return Value

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