共用方式為


Editor.CanMerge 方法

傳回值,指出來源項目是否由指定的根目錄,ProtoElement 可以加入至這個項目。

命名空間:  Microsoft.VisualStudio.Modeling.DslDefinition
組件:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.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 代表來源項目。這可以是 null,ElementGroupPrototype 不包含 ProtoElements 這種情況下,程式碼應檢查的 ElementGroupPrototype 內容資訊。

傳回值

型別:System.Boolean
如果 ProtoElement 所代表的來源項目可以加入至這個目標項目,則為 true。

.NET Framework 安全性

請參閱

參考

Editor 類別

Microsoft.VisualStudio.Modeling.DslDefinition 命名空間