Share via


ModelElement.MergeRelate(ModelElement, ElementGroup) Method

Definition

Called by the Merge process to create a relationship between this target element and the specified source element. Typically, a parent-child relationship is established between the target element (the parent) and the source element (the child), but any relationship can be established.

protected:
 virtual void MergeRelate(Microsoft::VisualStudio::Modeling::ModelElement ^ sourceElement, Microsoft::VisualStudio::Modeling::ElementGroup ^ elementGroup);
protected virtual void MergeRelate (Microsoft.VisualStudio.Modeling.ModelElement sourceElement, Microsoft.VisualStudio.Modeling.ElementGroup elementGroup);
abstract member MergeRelate : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ElementGroup -> unit
override this.MergeRelate : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ElementGroup -> unit
Protected Overridable Sub MergeRelate (sourceElement As ModelElement, elementGroup As ElementGroup)

Parameters

sourceElement
ModelElement

The element that is to be related to this model element.

elementGroup
ElementGroup

The group of source ModelElements that have been rehydrated into the target store.

Remarks

Override this method to create the relationship between this target element and the specified source element.

Applies to