ElementOperations.Copy Method (IDataObject, ICollection<ModelElement>, ClosureType)
Copies the collection of ModelElements to the specified IDataObject in one or more data formats.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Sub Copy ( _
data As IDataObject, _
elements As ICollection(Of ModelElement), _
closureType As ClosureType _
)
public void Copy(
IDataObject data,
ICollection<ModelElement> elements,
ClosureType closureType
)
public:
void Copy(
IDataObject^ data,
ICollection<ModelElement^>^ elements,
ClosureType closureType
)
member Copy :
data:IDataObject *
elements:ICollection<ModelElement> *
closureType:ClosureType -> unit
public function Copy(
data : IDataObject,
elements : ICollection<ModelElement>,
closureType : ClosureType
)
Parameters
data
Type: System.Windows.Forms.IDataObjectThe IDataObject to add the data formats to.
elements
Type: System.Collections.Generic.ICollection<ModelElement>The collection of ModelElements to copy.
closureType
Type: Microsoft.VisualStudio.Modeling.ClosureTypeThe closure of ModelElements to copy.
Remarks
The supported formats: (1) ElementGroupPrototype, and (2) custom formats
.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.