Partager via


ModelElement.OnCopy Method

Called when this element has been created as a copy of another element.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Déclaration
Protected Friend Overridable Sub OnCopy ( _
    sourceElement As ModelElement _
)
protected internal virtual void OnCopy(
    ModelElement sourceElement
)
protected public:
virtual void OnCopy(
    ModelElement^ sourceElement
)
abstract OnCopy : 
        sourceElement:ModelElement -> unit 
override OnCopy : 
        sourceElement:ModelElement -> unit 
 function OnCopy(
    sourceElement : ModelElement
)

Parameters

Remarks

This method is called on the new the element.

.NET Framework Security

See Also

Reference

ModelElement Class

Microsoft.VisualStudio.Modeling Namespace