다음을 통해 공유


DomainClass.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:
 override bool CanMerge(Microsoft::VisualStudio::Modeling::ProtoElementBase ^ rootElement, Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
protected override bool CanMerge (Microsoft.VisualStudio.Modeling.ProtoElementBase rootElement, Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
override this.CanMerge : Microsoft.VisualStudio.Modeling.ProtoElementBase * Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> bool
Protected Overrides 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.

Applies to