Método UIMap.GetTopLevelElement

Retorna o elemento superior que contém o objeto de interface de usuário fornecido.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common.UIMap
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (em Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Sintaxe

'Declaração
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

Parâmetros

Valor de retorno

Tipo: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap.TopLevelElement
O elemento de nível superior.

Segurança do .NET Framework

Consulte também

Referência

UIMap Classe

Namespace Microsoft.VisualStudio.TestTools.UITest.Common.UIMap

UIObject

TopLevelElement