SerialDevice.PortName 属性

定义

获取串行通信的端口名称。

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

属性值

String

Platform::String

winrt::hstring

通信端口名称。 例如“COM1”。

适用于