BluetoothLEDevice.GattServices Propriedade

Definição

Obtém a lista somente leitura dos serviços GATT compatíveis com o dispositivo.

Importante

A API GattServices foi preterida e pode não estar disponível em versões futuras do Windows. Em vez disso, use GetGattServicesAsync.

public:
 property IVectorView<GattDeviceService ^> ^ GattServices { IVectorView<GattDeviceService ^> ^ get(); };
IVectorView<GattDeviceService> GattServices();
/// [get: Windows.Foundation.Metadata.Deprecated("Use GetGattServicesAsync instead of GattServices.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IVectorView<GattDeviceService> GattServices();
public IReadOnlyList<GattDeviceService> GattServices { get; }
public IReadOnlyList<GattDeviceService> GattServices { [Windows.Foundation.Metadata.Deprecated("Use GetGattServicesAsync instead of GattServices.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")] get; }
var iVectorView = bluetoothLEDevice.gattServices;
Public ReadOnly Property GattServices As IReadOnlyList(Of GattDeviceService)

Valor da propriedade

A lista somente leitura dos serviços GATT compatíveis com este dispositivo Bluetooth LE.

Atributos

Requisitos do Windows

Funcionalidades do aplicativo
bluetooth

Aplica-se a