Share via


SerialDevice.PortName Property

Definition

Gets the port name for serial communications.

public:
 property Platform::String ^ PortName { Platform::String ^ get(); };
winrt::hstring PortName();
public string PortName { get; }
var string = serialDevice.portName;
Public ReadOnly Property PortName As String

Property Value

String

Platform::String

winrt::hstring

The communication port name. For example "COM1".

Applies to