Partager via


ModelElement.CanMerge(ProtoElementBase, ElementGroupPrototype) Method

Definition

Returns a value indicating whether the source element represented by the specified root ProtoElement can be added to this element.

protected:
 virtual bool CanMerge(Microsoft::VisualStudio::Modeling::ProtoElementBase ^ rootElement, Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
protected virtual bool CanMerge (Microsoft.VisualStudio.Modeling.ProtoElementBase rootElement, Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
abstract member CanMerge : Microsoft.VisualStudio.Modeling.ProtoElementBase * Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> bool
override this.CanMerge : Microsoft.VisualStudio.Modeling.ProtoElementBase * Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> bool
Protected Overridable Function CanMerge (rootElement As ProtoElementBase, elementGroupPrototype As ElementGroupPrototype) As Boolean

Parameters

rootElement
ProtoElementBase

The root ProtoElement representing a source element. This can be null, in which case the ElementGroupPrototype does not contain an ProtoElements and the code should inspect the ElementGroupPrototype context information.

elementGroupPrototype
ElementGroupPrototype

The ElementGroupPrototype that contains the root ProtoElement.

Returns

true if the source element represented by the ProtoElement can be added to this target element.

Remarks

Accept merges of extensions, or any supplementary elements that extensions are prepared to merge

Applies to