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.1.1.2619)

Syntax

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

Field Value

COM port number of the ASCOM serial port.

Return Value

Integer, number of the ASCOM serial port

Implements

ISerial..::..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