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
- sourceElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
The element from which a duplicate was created.
Remarks
This method is called on the new the element.
.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.