Método UITestControlFactory.FromWindowHandle

Retorna uma nova UITestControl do identificador de janela especificada.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (em Microsoft.VisualStudio.TestTools.UITesting.dll)

Sintaxe

'Declaração
Public Shared Function FromWindowHandle ( _
    windowHandle As IntPtr _
) As UITestControl
public static UITestControl FromWindowHandle(
    IntPtr windowHandle
)
public:
static UITestControl^ FromWindowHandle(
    IntPtr windowHandle
)
static member FromWindowHandle : 
        windowHandle:IntPtr -> UITestControl 
public static function FromWindowHandle(
    windowHandle : IntPtr
) : UITestControl

Parâmetros

Valor de retorno

Tipo: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
Uma nova UITestControl do identificador de janela especificada.

Segurança do .NET Framework

Consulte também

Referência

UITestControlFactory Classe

Namespace Microsoft.VisualStudio.TestTools.UITesting