BluetoothDevice.FromIdAsync(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne un objet BluetoothDevice identifié par deviceId donné.
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)
Paramètres
- deviceId
-
String
Platform::String
winrt::hstring
Valeur DeviceId qui identifie l’instance BluetoothDevice.
Retours
Une fois l’opération asynchrone terminée, retourne l’objet BluetoothDevice identifié par deviceId donné.
- Attributs
Configuration requise pour Windows
| Configuration requise | Description |
|---|---|
| Fonctionnalités de l’application |
bluetooth
|
Remarques
Cette méthode doit être appelée à partir d’un thread d’interface utilisateur.