ModelElement.Copy Method (IEnumerable<Guid>)

Creates a copy of the element and its child links and elements.

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

Syntax

'Declaration
Public Function Copy ( _
    domainRolesNotToPropagate As IEnumerable(Of Guid) _
) As ModelElement
public ModelElement Copy(
    IEnumerable<Guid> domainRolesNotToPropagate
)
public:
ModelElement^ Copy(
    IEnumerable<Guid>^ domainRolesNotToPropagate
)
member Copy : 
        domainRolesNotToPropagate:IEnumerable<Guid> -> ModelElement
public function Copy(
    domainRolesNotToPropagate : IEnumerable<Guid>
) : ModelElement

Parameters

  • domainRolesNotToPropagate
    Type: IEnumerable<Guid>

    A list of domain role IDs through which copy should not be propagated.

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

See Also

Reference

ModelElement Class

Copy Overload

Microsoft.VisualStudio.Modeling Namespace

Other Resources

Customizing Copy Behavior

How to: Program Copy and Paste Behavior - redirect

How to: Add a Drag-and-Drop Handler