共用方式為


BluetoothDevice.GetDeviceSelectorFromBluetoothAddress(UInt64) 方法

定義

從代表藍牙裝置的 64 位位址建立進階查詢語法 (AQS) 篩選字串。 AQS 字串會傳遞至 CreateWatcher 方法,以傳回 DeviceInformation 物件的集合。

public:
 static Platform::String ^ GetDeviceSelectorFromBluetoothAddress(unsigned long long bluetoothAddress);
 static winrt::hstring GetDeviceSelectorFromBluetoothAddress(uint64_t const& bluetoothAddress);
public static string GetDeviceSelectorFromBluetoothAddress(ulong bluetoothAddress);
function getDeviceSelectorFromBluetoothAddress(bluetoothAddress)
Public Shared Function GetDeviceSelectorFromBluetoothAddress (bluetoothAddress As ULong) As String

參數

bluetoothAddress
UInt64

unsigned long long

uint64_t

用於建構 AQS 字串的 64 位藍牙裝置位址。

傳回

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

適用於