Langue

BluetoothDevice.FromIdAsync(String) Méthode

Définition

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.

S’applique à