ExtensionElement.CanMerge 方法

返回指示指定的根表示的源元素 ProtoElement 淡出可以添加到此元素。

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

语法

声明
Protected Overrides Function CanMerge ( _
    rootElement As ProtoElementBase, _
    elementGroupPrototype As ElementGroupPrototype _
) As Boolean
protected override bool CanMerge(
    ProtoElementBase rootElement,
    ElementGroupPrototype elementGroupPrototype
)

参数

  • rootElement
    类型:Microsoft.VisualStudio.Modeling.ProtoElementBase
    根表示源元素的 ProtoElement。这可能是空的,因此,在 ElementGroupPrototype 不包含 ProtoElements 情况下,代码应检查 ElementGroupPrototype 上下文信息。

返回值

类型:System.Boolean
,如果 ProtoElement 表示的源元素可以添加到此目标元素,则为 true。

备注

重写,因为我们必须需要扩展麦是否会接受 ExtensionElements 合并。 这是必需可让我们拒绝将创建不明确的角色或属性 MEXs 的组合。

.NET Framework 安全性

请参见

参考

ExtensionElement 类

Microsoft.VisualStudio.Modeling 命名空间