IUITechnologyManager.GetParent(IUITechnologyElement) 方法

定义

获取 UI 层次结构中给定元素的父元素。

public:
 Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetParent(Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ element);
[System.Runtime.InteropServices.DispId(8)]
public Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetParent (Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement element);
[<System.Runtime.InteropServices.DispId(8)>]
abstract member GetParent : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Public Function GetParent (element As IUITechnologyElement) As IUITechnologyElement

参数

element
IUITechnologyElement

一个 IUITechnologyElement 对象。

返回

IUITechnologyElement

父元素。

属性

适用于