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

適用於