Partilhar via


Método UITestControlFactory.FromNativeElement

Retorna uma nova UITestControl partir das informações de elementos nativos especificado.

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

Sintaxe

'Declaração
Public Shared Function FromNativeElement ( _
    nativeElement As Object, _
    technologyName As String _
) As UITestControl
public static UITestControl FromNativeElement(
    Object nativeElement,
    string technologyName
)
public:
static UITestControl^ FromNativeElement(
    Object^ nativeElement, 
    String^ technologyName
)
static member FromNativeElement : 
        nativeElement:Object * 
        technologyName:string -> UITestControl 
public static function FromNativeElement(
    nativeElement : Object, 
    technologyName : String
) : UITestControl

Parâmetros

Valor de retorno

Tipo: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
Uma nova UITestControl partir das informações de elementos nativos especificado.

Segurança do .NET Framework

Consulte também

Referência

UITestControlFactory Classe

Namespace Microsoft.VisualStudio.TestTools.UITesting