Bagikan melalui


BluetoothDevice.GetDeviceSelectorFromBluetoothAddress(UInt64) Metode

Definisi

Membuat string filter Advanced Query Syntax (AQS) dari alamat 64-bit yang mewakili perangkat Bluetooth. String AQS diteruskan ke metode CreateWatcher untuk mengembalikan kumpulan objek 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

Parameter

bluetoothAddress
UInt64

unsigned long long

uint64_t

Alamat perangkat Bluetooth 64-bit yang digunakan untuk membuat string AQS.

Mengembalikan

String

Platform::String

winrt::hstring

String AQS yang dapat diteruskan sebagai parameter ke metode CreateWatcher .

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v2.0)
Kemampuan aplikasi
bluetooth

Berlaku untuk