Sets the ASCOM serial port name as a string

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

Syntax

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

Field Value

Serial port name to be used

Return Value

Current serial port name

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