UITestControl.GetParent 方法

傳回目前 UITestControl 的父代。

命名空間:  Microsoft.VisualStudio.TestTools.UITesting
組件:  Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

語法

'宣告
Public Function GetParent As UITestControl
public UITestControl GetParent()
public:
UITestControl^ GetParent()
member GetParent : unit -> UITestControl 
public function GetParent() : UITestControl

傳回值

型別:Microsoft.VisualStudio.TestTools.UITesting.UITestControl
目前 UITestControl 的父代。

.NET Framework 安全性

請參閱

參考

UITestControl 類別

Microsoft.VisualStudio.TestTools.UITesting 命名空間