GattDeviceService.GetDeviceSelectorForBluetoothDeviceIdAndUuid Метод

Определение

Перегрузки

GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid)

Создает подходящую строку фильтра AQS для использования с методом CreateWatcher из BluetoothDeviceId и serviceUuid.

GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid, BluetoothCacheMode)

Создает подходящую строку фильтра AQS для использования с методом CreateWatcher из BluetoothDeviceId и serviceUuid.

GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid)

Создает подходящую строку фильтра AQS для использования с методом CreateWatcher из BluetoothDeviceId и serviceUuid.

public:
 static Platform::String ^ GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId ^ bluetoothDeviceId, Platform::Guid serviceUuid);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceIdAndUuid")]
 static winrt::hstring GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId const& bluetoothDeviceId, winrt::guid const& serviceUuid);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceIdAndUuid")]
public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId bluetoothDeviceId, Guid serviceUuid);
function getDeviceSelectorForBluetoothDeviceIdAndUuid(bluetoothDeviceId, serviceUuid)
Public Shared Function GetDeviceSelectorForBluetoothDeviceIdAndUuid (bluetoothDeviceId As BluetoothDeviceId, serviceUuid As Guid) As String

Параметры

bluetoothDeviceId
BluetoothDeviceId

Идентификатор устройства Bluetooth.

serviceUuid
Guid

Platform::Guid

winrt::guid

Идентификатор службы GATT.

Возвращаемое значение

String

Platform::String

winrt::hstring

Подходящая строка селектора AQS, которую можно передать в качестве параметра в метод CreateWatcher , чтобы получить путь к экземпляру службы GATT.

Атрибуты

Требования к Windows

Семейство устройств
Windows 10 Creators Update (появилось в 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (появилось в v4.0)
Возможности приложения
bluetooth

Применяется к

GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid, BluetoothCacheMode)

Создает подходящую строку фильтра AQS для использования с методом CreateWatcher из BluetoothDeviceId и serviceUuid.

public:
 static Platform::String ^ GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId ^ bluetoothDeviceId, Platform::Guid serviceUuid, BluetoothCacheMode cacheMode);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceIdAndUuidWithCacheMode")]
 static winrt::hstring GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId const& bluetoothDeviceId, winrt::guid const& serviceUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceIdAndUuidWithCacheMode")]
public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId bluetoothDeviceId, Guid serviceUuid, BluetoothCacheMode cacheMode);
function getDeviceSelectorForBluetoothDeviceIdAndUuid(bluetoothDeviceId, serviceUuid, cacheMode)
Public Shared Function GetDeviceSelectorForBluetoothDeviceIdAndUuid (bluetoothDeviceId As BluetoothDeviceId, serviceUuid As Guid, cacheMode As BluetoothCacheMode) As String

Параметры

bluetoothDeviceId
BluetoothDeviceId

Идентификатор устройства Bluetooth.

serviceUuid
Guid

Platform::Guid

winrt::guid

Идентификатор службы GATT.

cacheMode
BluetoothCacheMode

Режим кэша.

Возвращаемое значение

String

Platform::String

winrt::hstring

Подходящая строка селектора AQS, которую можно передать в качестве параметра в метод CreateWatcher , чтобы получить путь к экземпляру службы GATT.

Атрибуты

Требования к Windows

Семейство устройств
Windows 10 Creators Update (появилось в 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (появилось в v4.0)
Возможности приложения
bluetooth

Применяется к