Compartilhar via


Método UITestControl.CopyFrom

Cria um UITestControl que referencia o mesmo elemento da interface do usuário que o original do objeto UITestControl.

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