Language

BluetoothDevice.GetDeviceSelectorFromPairingState(Boolean) メソッド

定義

ペアリングまたはペアリングされていないBluetoothデバイスのクエリを含む高度なクエリ構文 (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デバイスの現在のペアリング状態。 Bluetoothデバイスは、ペアリング (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

適用対象