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
- targetElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
The ModelElement that will serve as the target for the reconstituted elements from the ElementGroupPrototype.
- 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.
- elementGroupPrototype
Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
The ElementGroupPrototype containing the root 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
- 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.