ElementOperations.MergeElementGroupPrototype 方法

具有指定的目标 ModelElement 将该源 ElementGroupPrototype。

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)

语法

声明
Public Overridable Sub MergeElementGroupPrototype ( _
    targetElement As ModelElement, _
    elementGroupPrototype As ElementGroupPrototype _
)
public virtual void MergeElementGroupPrototype(
    ModelElement targetElement,
    ElementGroupPrototype elementGroupPrototype
)

参数

备注

此方法执行以下操作:(1) 重建从 ElementGroupPrototype 的元素, (2) 调用 OnElementsReconstituted 提供任何 ElementOperations 派生的类机会在自定义过程, (3) 称为目标元素的 MergeRelate 每个已重新编写的根元素的虚方法可以提供目标以机会连接根元素到自身, (4) 调用中重建的根元素的虚方法 MergeConfigure 在调用 MergeRelate 后提供根元素可以配置自己,并且, (5) 调用 OnMerged 提供任何 ElementOperations 派生的类机会在自定义过程。

.NET Framework 安全性

请参见

参考

ElementOperations 类

Microsoft.VisualStudio.Modeling 命名空间