BluetoothLEDevice.GetDeviceSelectorFromPairingState(Boolean) 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.
Crée une chaîne de filtre AQS (Advanced Query Syntax) qui contient une requête pour les appareils Bluetooth LE associés ou non appairés. La chaîne AQS est passée à la méthode CreateWatcher pour renvoyer une collection d’objets DeviceInformation .
public:
static Platform::String ^ GetDeviceSelectorFromPairingState(bool pairingState);
static winrt::hstring GetDeviceSelectorFromPairingState(bool const& pairingState);
public static string GetDeviceSelectorFromPairingState(bool pairingState);
function getDeviceSelectorFromPairingState(pairingState)
Public Shared Function GetDeviceSelectorFromPairingState (pairingState As Boolean) As String
Paramètres
- pairingState
-
Boolean
bool
État actuel du jumelage pour les appareils Bluetooth LE utilisés pour construire la chaîne AQS. Les appareils Bluetooth LE peuvent être jumelés (true) ou non appairés (false). La chaîne de filtre AQS demande l’analyse à effectuer lorsque le pairingState a la valeur false.
Retours
Chaîne AQS qui peut être passée en tant que paramètre à la méthode CreateWatcher .
Configuration requise pour Windows
| Configuration requise | Description |
|---|---|
| Famille d’appareils |
Windows 10 (introduit dans 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduit dans v2.0)
|
| Fonctionnalités de l’application |
bluetooth
|