ModelElement.Copy Method
Creates a copy of the element in the model.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Dichiarazione
Public Function Copy As ModelElement
public ModelElement Copy()
public:
ModelElement^ Copy()
member Copy : unit -> ModelElement
public function Copy() : ModelElement
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
The copy of the ModelElement.
Remarks
The child links are those with a role in which PropagatesCopy is set. Typically these are the source roles of instances of embedding relationships.
For more information, see Customizing Copy Behavior.
.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.
See Also
Reference
Microsoft.VisualStudio.Modeling Namespace