PhoneLine.TransportDeviceId 属性

定义

与此 PhoneLine 关联的 PhoneLineTransportDevice 的设备 ID。 如果没有传输设备,则为 Null。

public:
 property Platform::String ^ TransportDeviceId { Platform::String ^ get(); };
winrt::hstring TransportDeviceId();
public string TransportDeviceId { get; }
var string = phoneLine.transportDeviceId;
Public ReadOnly Property TransportDeviceId As String

属性值

String

Platform::String

winrt::hstring

表示设备 ID 的字符串。

Windows 要求

设备系列
Windows 10, version 1903 (在 10.0.18362.0 中引入)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (在 v5.0 中引入)

注解

DeviceId 来自 Windows.Devices.Enumerations.DeviceInformation.ID

PhoneLineTransportDevice 仅适用于 PhoneLineTransport 类型为蓝牙的 PhoneLine 对象。

适用于