共用方式為


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

適用於