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)
Parameters
Return Value
Type: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap::TopLevelElementThe top-level element.
- 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.
Show: