Поделиться через


BluetoothLEDevice.GetGattServicesForUuidAsync Метод

Определение

Перегрузки

GetGattServicesForUuidAsync(Guid)

Возвращает GattDeviceServices для устройства Bluetooth LowХит с указанным UUID.

GetGattServicesForUuidAsync(Guid, BluetoothCacheMode)

Возвращает GattDeviceServices для устройства Bluetooth LowХит с указанным UUID.

GetGattServicesForUuidAsync(Guid)

Возвращает GattDeviceServices для устройства Bluetooth LowХит с указанным UUID.

public:
 virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetGattServicesForUuidAsync(Platform::Guid serviceUuid) = GetGattServicesForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetGattServicesForUuidAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(winrt::guid const& serviceUuid);
[Windows.Foundation.Metadata.Overload("GetGattServicesForUuidAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(Guid serviceUuid);
function getGattServicesForUuidAsync(serviceUuid)
Public Function GetGattServicesForUuidAsync (serviceUuid As Guid) As IAsyncOperation(Of GattDeviceServicesResult)

Параметры

serviceUuid
Guid

Platform::Guid

winrt::guid

UUID службы.

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

Атрибуты

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

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

Комментарии

Возвращает асинхронную операцию, которая завершается с GattDeviceServicesResult.

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

GetGattServicesForUuidAsync(Guid, BluetoothCacheMode)

Возвращает GattDeviceServices для устройства Bluetooth LowХит с указанным UUID.

public:
 virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetGattServicesForUuidAsync(Platform::Guid serviceUuid, BluetoothCacheMode cacheMode) = GetGattServicesForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetGattServicesForUuidWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(winrt::guid const& serviceUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetGattServicesForUuidWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(Guid serviceUuid, BluetoothCacheMode cacheMode);
function getGattServicesForUuidAsync(serviceUuid, cacheMode)
Public Function GetGattServicesForUuidAsync (serviceUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattDeviceServicesResult)

Параметры

serviceUuid
Guid

Platform::Guid

winrt::guid

UUID службы.

cacheMode
BluetoothCacheMode

Режим кэша.

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

Возвращает асинхронную операцию, которая завершается с GattDeviceServicesResult.

Атрибуты

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

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

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