Partager via


ElementOperations.CanCopy Method (ICollection<ModelElement>, ClosureType)

Gets a value indicating whether the collection of ModelElements can be copied to an IDataObject. Calls CanCopyCore to do the work.

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

Syntax

'Déclaration
Public Overridable Function CanCopy ( _
    elements As ICollection(Of ModelElement), _
    closureType As ClosureType _
) As Boolean
public virtual bool CanCopy(
    ICollection<ModelElement> elements,
    ClosureType closureType
)
public:
virtual bool CanCopy(
    ICollection<ModelElement^>^ elements, 
    ClosureType closureType
)
abstract CanCopy : 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType -> bool 
override CanCopy : 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType -> bool 
public function CanCopy(
    elements : ICollection<ModelElement>, 
    closureType : ClosureType
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the collection of ModelElements can be copied to an IDataObject.

Remarks

The supported formats: (1) ElementGroupPrototype, and (2) custom formats

.NET Framework Security

See Also

Reference

ElementOperations Class

CanCopy Overload

Microsoft.VisualStudio.Modeling Namespace