Bagikan melalui


UITechnologyElement.TopLevelElement Property

Gets or sets the top-level window for this element.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
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)

Property Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement

Remarks

Top-level windows are typically children of the desktop. If this property is not set, the test framework sets the value to the topmost ancestor of the element, and ignores the desktop as an ancestor.

.NET Framework Security

See Also

Reference

UITechnologyElement Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace