BluetoothLEDevice.GattServices Property

Definition

Gets the read-only list of GATT services supported by the device.

Important

The GattServices API is deprecated, and it may not be available in future versions of Windows. Instead, 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)

Property Value

The read-only list of GATT services supported by this Bluetooth LE device.

Attributes

Windows requirements

App capabilities
bluetooth

Applies to