次の方法で共有


IMergeElements.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.

public:
 void MergeRelate(Microsoft::VisualStudio::Modeling::ModelElement ^ sourceElement, Microsoft::VisualStudio::Modeling::ElementGroup ^ elementGroup);
public void MergeRelate (Microsoft.VisualStudio.Modeling.ModelElement sourceElement, Microsoft.VisualStudio.Modeling.ElementGroup elementGroup);
abstract member MergeRelate : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ElementGroup -> unit
Public 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