次の方法で共有


BluetoothLEDevice.GetDeviceSelectorFromPairingState(Boolean) メソッド

定義

ペアになっているかペアになっていない Bluetooth LE デバイスのクエリを含む高度なクエリ構文 (AQS) フィルター文字列を作成します。 AQS 文字列は、DeviceInformation オブジェクトのコレクションを返すために CreateWatcher メソッドに渡されます。

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

パラメーター

pairingState
Boolean

bool

AQS 文字列の構築に使用される Bluetooth LE デバイスの現在のペアリング状態。 Bluetooth LE デバイスは、ペアリング (true) またはペア解除 (false) のいずれかです。 AQS フィルター文字列は、pairingState が false の場合にスキャンの実行を要求します。

戻り値

String

Platform::String

winrt::hstring

CreateWatcher メソッドにパラメーターとして渡すことができる AQS 文字列。

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox で導入)
API contract
Windows.Foundation.UniversalApiContract (v2.0 で導入)
アプリの機能
bluetooth

適用対象