PhoneLineTransportDevice.FromId(String) 方法

定义

从给定的 DeviceId 中获取 PhoneLineTransportDevice。

public:
 static PhoneLineTransportDevice ^ FromId(Platform::String ^ id);
 static PhoneLineTransportDevice FromId(winrt::hstring const& id);
public static PhoneLineTransportDevice FromId(string id);
function fromId(id)
Public Shared Function FromId (id As String) As PhoneLineTransportDevice

参数

id
String

Platform::String

winrt::hstring

DeviceId

返回

如果 DeviceId 与现有设备不对应,则为 PhoneLineTransportDevice 或 null。

适用于

另请参阅