UITestControlFactory.FromNativeElement Method
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assemblies: Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
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
- technologyName
Type: String
Return Value
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.