BluetoothDevice.FromIdAsync(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個以指定 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 執行緒呼叫。