UITechnologyManager.GetParent(IUITechnologyElement) 方法

定义

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

public:
 abstract Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetParent(Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ element);
public abstract Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetParent (Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement element);
abstract member GetParent : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Public MustOverride Function GetParent (element As IUITechnologyElement) As IUITechnologyElement

参数

element
IUITechnologyElement

一个 IUITechnologyElement 对象。

返回

IUITechnologyElement

父元素。

实现

适用于