Partilhar via


Método UITestControl.CopyFrom

Cria um objeto de UITestControl que faz referência ao mesmo elemento de interface do usuário que UITestControloriginal.

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

Sintaxe

'Declaração
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
)

Parâmetros

Segurança do .NET Framework

Consulte também

Referência

UITestControl Classe

Namespace Microsoft.VisualStudio.TestTools.UITesting