다음을 통해 공유


ElementOperations.CanCopyCore Method

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

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

Syntax

'Declaration
Protected Overridable Function CanCopyCore ( _
    elements As ICollection(Of ModelElement), _
    closureType As ClosureType _
) As Boolean
protected virtual bool CanCopyCore(
    ICollection<ModelElement> elements,
    ClosureType closureType
)
protected:
virtual bool CanCopyCore(
    ICollection<ModelElement^>^ elements, 
    ClosureType closureType
)
abstract CanCopyCore : 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType -> bool  
override CanCopyCore : 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType -> bool
protected function CanCopyCore(
    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

This is implemented outside of CanCopy, so that subclasses can override the public CanCopy and CanMove methods independently. If subclasses want to have the same behavior for both CanCopy and CanMove, they can just override this method. (Before this method existed, overriding only CanCopy led to the side effect of changing the CanMove behavior.) The supported formats: (1) ElementGroupPrototype, and (2) custom formats

.NET Framework Security

See Also

Reference

ElementOperations Class

Microsoft.VisualStudio.Modeling Namespace