GattDeviceService.ParentServices 属性

定义

获取此服务的父服务的只读列表。

重要

ParentServices API 已弃用,它可能在将来的 Windows 版本中不可用。

public:
 property IVectorView<GattDeviceService ^> ^ ParentServices { IVectorView<GattDeviceService ^> ^ get(); };
IVectorView<GattDeviceService> ParentServices();
/// [get: Windows.Foundation.Metadata.Deprecated("ParentServices may be altered or unavailable in future releases.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IVectorView<GattDeviceService> ParentServices();
public IReadOnlyList<GattDeviceService> ParentServices { get; }
public IReadOnlyList<GattDeviceService> ParentServices { [Windows.Foundation.Metadata.Deprecated("ParentServices may be altered or unavailable in future releases.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")] get; }
var iVectorView = gattDeviceService.parentServices;
Public ReadOnly Property ParentServices As IReadOnlyList(Of GattDeviceService)

属性值

如果此 GattDeviceService 是包含的服务,则为派生自此对象的父服务的只读列表;否则为 null。

属性

Windows 要求

应用功能
bluetooth

适用于