BluetoothLEDevice.GetDeviceSelectorFromAppearance 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從 BluetoothLEAppearance 物件建立 (AQS) 篩選字串的進階查詢語法。 AQS 字串會傳遞至 CreateWatcher 方法,以傳回具有指定外觀的 DeviceInformation 物件集合。
public:
static Platform::String ^ GetDeviceSelectorFromAppearance(BluetoothLEAppearance ^ appearance);
static winrt::hstring GetDeviceSelectorFromAppearance(BluetoothLEAppearance const& appearance);
public static string GetDeviceSelectorFromAppearance(BluetoothLEAppearance appearance);
function getDeviceSelectorFromAppearance(appearance)
Public Shared Function GetDeviceSelectorFromAppearance (appearance As BluetoothLEAppearance) As String
參數
- appearance
- BluetoothLEAppearance
用於建構 AQS 字串的藍牙 LE 外觀。
傳回
AQS 字串,可當做參數傳遞至 CreateWatcher 方法。
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
|