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

Namespace: ASCOM.Utilities.Interfaces
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
int Port { get; set; }
Visual Basic
Property Port As Integer
	Get
	Set
Visual C++
property int Port {
	int get ();
	void set (int value);
}

Field Value

COM port number of the ASCOM serial port.

Return Value

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