BluetoothLEDevice.GattServices 属性

定义

获取设备支持的 GATT 服务的只读列表。

重要

GattServices API 已弃用,将来的 Windows 版本中可能不可用。 请改用 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)

属性值

此蓝牙 LE 设备支持的 GATT 服务的只读列表。

属性

Windows 要求

应用功能
bluetooth

适用于