SerialPortName Property

Sets the ASCOM serial port name as a string

Definition

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

Property Value

String
Serial port name to be used

Return Value

String
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