This documentation is archived and is not being maintained.

UITestControl.CopyFrom Method

Creates a UITestControl object that references the same element on the user interface as the original UITestControl.

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

public virtual void CopyFrom(
	UITestControl controlToCopy
)

Parameters

controlToCopy
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl

The control to be copied.

Show: