This documentation is archived and is not being maintained.

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)

public static UITestControl FromNativeElement(
	Object nativeElement,
	string technologyName
)

Parameters

nativeElement
Type: System.Object
The Native Element reference to use to create a new UITestControl.
technologyName
Type: System.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.

Show: