共用方式為


UITechnologyElement.TopLevelElement 屬性

取得或設定這個項目的最上層視窗。

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

語法

'宣告
Public MustOverride Property TopLevelElement As UITechnologyElement
public abstract UITechnologyElement TopLevelElement { get; set; }
public:
virtual property UITechnologyElement^ TopLevelElement {
    UITechnologyElement^ get () abstract;
    void set (UITechnologyElement^ value) abstract;
}
abstract TopLevelElement : UITechnologyElement with get, set
abstract function get TopLevelElement () : UITechnologyElement
abstract function set TopLevelElement (value : UITechnologyElement)

屬性值

型別:Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
最上層的視窗。

備註

最高層級視窗通常是桌面的子系。 如果未設定此屬性,測試架構會將值設定為項目的最上層祖系,並會忽略做為祖系的桌面。

.NET Framework 安全性

請參閱

參考

UITechnologyElement 類別

Microsoft.VisualStudio.TestTools.UITest.Extension 命名空間