다음을 통해 공유


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

적용 대상