다음을 통해 공유


BluetoothLEDevice.GetDeviceSelectorFromDeviceName(String) 메서드

정의

Bluetooth LE 디바이스 이름에 대한 쿼리를 포함하는 AQS(고급 쿼리 구문) 필터 문자열을 만듭니다. AQS 문자열은 CreateWatcher 메서드에 전달되어 지정된 Bluetooth LE 디바이스 이름을 포함하는 DeviceInformation 개체의 컬렉션을 반환합니다.

public:
 static Platform::String ^ GetDeviceSelectorFromDeviceName(Platform::String ^ deviceName);
 static winrt::hstring GetDeviceSelectorFromDeviceName(winrt::hstring const& deviceName);
public static string GetDeviceSelectorFromDeviceName(string deviceName);
function getDeviceSelectorFromDeviceName(deviceName)
Public Shared Function GetDeviceSelectorFromDeviceName (deviceName As String) As String

매개 변수

deviceName
String

Platform::String

winrt::hstring

AQS 문자열을 생성하는 데 사용되는 Bluetooth LE 디바이스 이름입니다.

반환

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

적용 대상