共用方式為


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

適用於