Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
TopLevelElement^ GetTopLevelElement(
	UIObject^ uiObject
)

Show: