Compartir a través de


BluetoothLEDevice.GetGattServicesForUuidAsync Método

Definición

Sobrecargas

GetGattServicesForUuidAsync(Guid)

Devuelve gattDeviceServices para el dispositivo Bluetooth LowEnergy con el UUID especificado.

GetGattServicesForUuidAsync(Guid, BluetoothCacheMode)

Devuelve gattDeviceServices para el dispositivo Bluetooth LowEnergy con el UUID especificado.

GetGattServicesForUuidAsync(Guid)

Devuelve gattDeviceServices para el dispositivo Bluetooth LowEnergy con el UUID especificado.

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)

Parámetros

serviceUuid
Guid

Platform::Guid

winrt::guid

UUID del servicio.

Devoluciones

Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10 Creators Update (se introdujo en la versión 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v4.0)
Características de aplicaciones
bluetooth

Comentarios

Devuelve una operación asincrónica que se completa con un GattDeviceServicesResult.

Se aplica a

GetGattServicesForUuidAsync(Guid, BluetoothCacheMode)

Devuelve gattDeviceServices para el dispositivo Bluetooth LowEnergy con el UUID especificado.

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)

Parámetros

serviceUuid
Guid

Platform::Guid

winrt::guid

UUID del servicio.

cacheMode
BluetoothCacheMode

Modo de caché.

Devoluciones

Devuelve una operación asincrónica que se completa con un GattDeviceServicesResult.

Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10 Creators Update (se introdujo en la versión 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v4.0)
Características de aplicaciones
bluetooth

Se aplica a