GattDeviceService.GetAllIncludedServices 方法

定义

获取属于此 GattDeviceService 实例的所有包含服务的集合。

重要

GetAllCharacteristics API 已弃用,将来的 Windows 版本中可能不可用。 请改用 GetIncludedServicesAsync

public:
 virtual IVectorView<GattDeviceService ^> ^ GetAllIncludedServices() = GetAllIncludedServices;
IVectorView<GattDeviceService> GetAllIncludedServices();
/// [Windows.Foundation.Metadata.Deprecated("Use GetIncludedServicesAsync instead of GetAllIncludedServices.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IVectorView<GattDeviceService> GetAllIncludedServices();
public IReadOnlyList<GattDeviceService> GetAllIncludedServices();
[Windows.Foundation.Metadata.Deprecated("Use GetIncludedServicesAsync instead of GetAllIncludedServices.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public IReadOnlyList<GattDeviceService> GetAllIncludedServices();
function getAllIncludedServices()
Public Function GetAllIncludedServices () As IReadOnlyList(Of GattDeviceService)

返回

属于此 GattDeviceService 实例的所有包含服务的集合。

属性

Windows 要求

应用功能
bluetooth

适用于