語言

BluetoothDevice.FromIdAsync(String) 方法

定義

回傳一個以指定 DeviceID 識別的 BluetoothDevice 物件。

public:
 static IAsyncOperation<BluetoothDevice ^> ^ FromIdAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<BluetoothDevice> FromIdAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<BluetoothDevice> FromIdAsync(string deviceId);
function fromIdAsync(deviceId)
Public Shared Function FromIdAsync (deviceId As String) As IAsyncOperation(Of BluetoothDevice)

參數

deviceId
String

Platform::String

winrt::hstring

DeviceID 值用來識別 BluetoothDevice 實例。

傳回

非同步操作完成後,會回傳由指定 DeviceID 識別的 BluetoothDevice 物件。

屬性

Windows 需求

規格需求 Description
應用程式功能
bluetooth

備註

此方法必須從 UI 執行緒呼叫。

適用於