Compartilhar via


ElementOperations.CanMergeElementGroupPrototype Method (ModelElement, ProtoElementBase, ElementGroupPrototype)

Gets a value indicating whether MergeElementGroupPrototype can be performed given the particular hoist and element group prototype.

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

Syntax

'Declaração
Protected Friend Overridable Function CanMergeElementGroupPrototype ( _
    targetElement As ModelElement, _
    toMergeProtoElement As ProtoElementBase, _
    elementGroupPrototype As ElementGroupPrototype _
) As Boolean
protected internal virtual bool CanMergeElementGroupPrototype(
    ModelElement targetElement,
    ProtoElementBase toMergeProtoElement,
    ElementGroupPrototype elementGroupPrototype
)
protected public:
virtual bool CanMergeElementGroupPrototype(
    ModelElement^ targetElement, 
    ProtoElementBase^ toMergeProtoElement, 
    ElementGroupPrototype^ elementGroupPrototype
)
abstract CanMergeElementGroupPrototype : 
        targetElement:ModelElement * 
        toMergeProtoElement:ProtoElementBase * 
        elementGroupPrototype:ElementGroupPrototype -> bool 
override CanMergeElementGroupPrototype : 
        targetElement:ModelElement * 
        toMergeProtoElement:ProtoElementBase * 
        elementGroupPrototype:ElementGroupPrototype -> bool 
 function CanMergeElementGroupPrototype(
    targetElement : ModelElement, 
    toMergeProtoElement : ProtoElementBase, 
    elementGroupPrototype : ElementGroupPrototype
) : boolean

Parameters

  • toMergeProtoElement
    Type: Microsoft.VisualStudio.Modeling.ProtoElementBase
    A root ProtoElement in the ElementGroupPrototype that, when reconstituted, will become merged into the target element. This parameter can be null, in which case the ElementGroupPrototype does not contain any ProtoElements.

Return Value

Type: System.Boolean
a value indicating whether MergeElementGroupPrototype can be performed given the particular target and child.

Remarks

The CanMergeElementGroupPrototype process calls this overload for each root ProtoElement in the ElementGroupPrototype to determine if either the target element or the target's associated model element (if applicable) can serve as the target of the element represented by the ProtoElement.

.NET Framework Security

See Also

Reference

ElementOperations Class

CanMergeElementGroupPrototype Overload

Microsoft.VisualStudio.Modeling Namespace