UIMap.GetTopLevelElement Method
Returns the top element that contains the provided UI object.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
'Declaration
Public Function GetTopLevelElement ( _
uiObject As UIObject _
) As TopLevelElement
public TopLevelElement GetTopLevelElement(
UIObject uiObject
)
public:
TopLevelElement^ GetTopLevelElement(
UIObject^ uiObject
)
member GetTopLevelElement :
uiObject:UIObject -> TopLevelElement
public function GetTopLevelElement(
uiObject : UIObject
) : TopLevelElement
Parameters
uiObject
Type: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap.UIObjectA UIObject.
Return Value
Type: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap.TopLevelElement
The top-level element.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.UITest.Common.UIMap Namespace