GattDeviceService.GetIncludedServices(Guid) 方法

定义

返回包含的服务的向量,这些服务由指定的 UUID 标识并属于此 GattDeviceService 实例。

重要

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

public:
 virtual IVectorView<GattDeviceService ^> ^ GetIncludedServices(Platform::Guid serviceUuid) = GetIncludedServices;
IVectorView<GattDeviceService> GetIncludedServices(winrt::guid const& serviceUuid);
/// [Windows.Foundation.Metadata.Deprecated("Use GetIncludedServicesForUuidAsync instead of GetIncludedServices.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IVectorView<GattDeviceService> GetIncludedServices(winrt::guid const& serviceUuid);
public IReadOnlyList<GattDeviceService> GetIncludedServices(Guid serviceUuid);
[Windows.Foundation.Metadata.Deprecated("Use GetIncludedServicesForUuidAsync instead of GetIncludedServices.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public IReadOnlyList<GattDeviceService> GetIncludedServices(Guid serviceUuid);
function getIncludedServices(serviceUuid)
Public Function GetIncludedServices (serviceUuid As Guid) As IReadOnlyList(Of GattDeviceService)

参数

serviceUuid
Guid

Platform::Guid

winrt::guid

要检索的包含服务的 UUID。

返回

包含服务的向量,其 UUID 与 serviceUuid 匹配。

属性

Windows 要求

应用功能
bluetooth

适用于