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

適用於