BluetoothLEDevice.GetDeviceSelectorFromBluetoothAddress 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetDeviceSelectorFromBluetoothAddress(UInt64) |
從代表藍牙 LE 裝置的 64 位位址建立進階查詢語法 (AQS) 篩選字串。 AQS 字串會傳遞至 CreateWatcher 方法,以傳回 DeviceInformation 物件的集合。 |
GetDeviceSelectorFromBluetoothAddress(UInt64, BluetoothAddressType) |
從代表藍牙 LE 裝置的 64 位位址和網址類別型,建立 AQS) 篩選字串 (進階查詢語法。 AQS 字串會傳遞至 CreateWatcher 方法。 |
GetDeviceSelectorFromBluetoothAddress(UInt64)
從代表藍牙 LE 裝置的 64 位位址建立進階查詢語法 (AQS) 篩選字串。 AQS 字串會傳遞至 CreateWatcher 方法,以傳回 DeviceInformation 物件的集合。
public:
static Platform::String ^ GetDeviceSelectorFromBluetoothAddress(unsigned long long bluetoothAddress);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromBluetoothAddress")]
static winrt::hstring GetDeviceSelectorFromBluetoothAddress(uint64_t const& bluetoothAddress);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromBluetoothAddress")]
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 位藍牙 LE 裝置位址。
傳回
可當做參數傳遞至 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
|
另請參閱
適用於
GetDeviceSelectorFromBluetoothAddress(UInt64, BluetoothAddressType)
從代表藍牙 LE 裝置的 64 位位址和網址類別型,建立 AQS) 篩選字串 (進階查詢語法。 AQS 字串會傳遞至 CreateWatcher 方法。
public:
static Platform::String ^ GetDeviceSelectorFromBluetoothAddress(unsigned long long bluetoothAddress, BluetoothAddressType bluetoothAddressType);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromBluetoothAddressWithBluetoothAddressType")]
static winrt::hstring GetDeviceSelectorFromBluetoothAddress(uint64_t const& bluetoothAddress, BluetoothAddressType const& bluetoothAddressType);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromBluetoothAddressWithBluetoothAddressType")]
public static string GetDeviceSelectorFromBluetoothAddress(ulong bluetoothAddress, BluetoothAddressType bluetoothAddressType);
function getDeviceSelectorFromBluetoothAddress(bluetoothAddress, bluetoothAddressType)
Public Shared Function GetDeviceSelectorFromBluetoothAddress (bluetoothAddress As ULong, bluetoothAddressType As BluetoothAddressType) As String
參數
- bluetoothAddress
-
UInt64
unsigned long long
uint64_t
用於建構 AQS 字串的 64 位藍牙 LE 裝置位址。
- bluetoothAddressType
- BluetoothAddressType
藍牙 LE 裝置網址類別型。
傳回
可當做參數傳遞至 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
|