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

.NET Framework Security

See Also

Reference

UITestControl Class

Microsoft.VisualStudio.TestTools.UITesting Namespace