Partilhar via


Método UITechnologyManager.GetElementFromWindowHandle

Recupera o elemento que é identificado pelo identificador de janela fornecido.

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

Sintaxe

'Declaração
Public MustOverride Function GetElementFromWindowHandle ( _
    handle As IntPtr _
) As IUITechnologyElement
public abstract IUITechnologyElement GetElementFromWindowHandle(
    IntPtr handle
)
public:
virtual IUITechnologyElement^ GetElementFromWindowHandle(
    IntPtr handle
) abstract
abstract GetElementFromWindowHandle : 
        handle:IntPtr -> IUITechnologyElement 
public abstract function GetElementFromWindowHandle(
    handle : IntPtr
) : IUITechnologyElement

Parâmetros

Valor de retorno

Tipo: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
O elemento especificado.

Implementações

IUITechnologyManager.GetElementFromWindowHandle(IntPtr)

Segurança do .NET Framework

Consulte também

Referência

UITechnologyManager Classe

Namespace Microsoft.VisualStudio.TestTools.UITest.Extension