DslLibraryBase.CanMerge 方法

返回一个值,该值指示是否可向此元素添加由指定根 ProtoElement 表示的源元素。

命名空间:  Microsoft.VisualStudio.Modeling.DslDefinition
程序集:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.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。

.NET Framework 安全性

请参阅

参考

DslLibraryBase 类

Microsoft.VisualStudio.Modeling.DslDefinition 命名空间