Share via


UITestControlFactory.FromNativeElement Method

Returns a new UITestControl from the specified native element information.

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

Syntax

'Declaration
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

Parameters

  • nativeElement
    Type: Object

    The Native Element reference to use to create a new UITestControl.

  • technologyName
    Type: String

    The Technology Name to use when creating a new UITestControl.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
A new UITestControl from the specified native element information.

.NET Framework Security

See Also

Reference

UITestControlFactory Class

Microsoft.VisualStudio.TestTools.UITesting Namespace