Serial.PortName Property
Click or drag to resize

SerialPortName Property

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.4.0.2624)
Syntax
public string PortName { get; set; }

Property Value

Type: String
Serial port name to be used

Return Value

Type: 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