BluetoothDevice.FromIdAsync(String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a BluetoothDevice object identified by the given DeviceId.
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
The DeviceId value that identifies the BluetoothDevice instance.
After the asynchronous operation completes, returns the BluetoothDevice object identified by the given DeviceId.
- Attributes
App capabilities |
bluetooth
|
This method must be called from a UI thread.