Sets the ASCOM serial port name as a string

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

Syntax

C#
public string PortName { get; set; }
Visual Basic
Public Property PortName As String
	Get
	Set
Visual C++
public:
virtual property String^ PortName {
	String^ get () sealed;
	void set (String^ value) sealed;
}

Field Value

Serial port name to be used

Return Value

Current serial port name

Implements

ISerial..::..PortName

Remarks

This property allows any serial port name to be used, even if it doesn't conform to a format of COMnnn If the required port name is of the form COMnnn then Serial.Port=nnn and Serial.PortName="COMnnn" are equivalent.

See Also