Share via


BluetoothDeviceId.FromId(String) 方法

定义

从设备 ID 创建 BluetoothDeviceId 对象。

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

参数

deviceId
String

Platform::String

winrt::hstring

设备 ID。

返回

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)
应用功能
bluetooth

适用于