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)
Syntax
'Declaration
Public Overridable Sub CopyFrom ( _
controlToCopy As UITestControl _
)
public virtual void CopyFrom(
UITestControl controlToCopy
)
public:
virtual void CopyFrom(
UITestControl^ controlToCopy
)
abstract CopyFrom :
controlToCopy:UITestControl -> unit
override CopyFrom :
controlToCopy:UITestControl -> unit
public function CopyFrom(
controlToCopy : UITestControl
)
Parameters
- controlToCopy
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
The control to be copied.
.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.