IMergeElements.CanMerge 方法

指示源元素是否可添加到此元素。

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

语法

声明
Function CanMerge ( _
    rootElement As ProtoElementBase, _
    elementGroupPrototype As ElementGroupPrototype _
) As Boolean
bool CanMerge(
    ProtoElementBase rootElement,
    ElementGroupPrototype elementGroupPrototype
)

参数

返回值

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

备注

源元素按指定的根 ProtoElement表示。

如果 rootElement 为 nullnull 引用(在 Visual Basic 中为 Nothing),则 ElementGroupPrototype 不包含 ProtoElements 属性的值,并且代码应检查 ElementGroupPrototype 上下文信息。

.NET Framework 安全性

请参阅

参考

IMergeElements 接口

Microsoft.VisualStudio.Modeling 命名空间