ElementOperations.AddElementGroupFormat 方法 (IDataObject, ICollection<ModelElement>, ClosureType, Boolean)

使用指定的 ModelElements 集合添加 the ElementGroupPrototype 格式到指定的 IDataObject。 为了创建模型元素集合,可以从派生类中调用以强制要求加载元素链接。

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

语法

声明
Protected Sub AddElementGroupFormat ( _
    data As IDataObject, _
    elements As ICollection(Of ModelElement), _
    closureType As ClosureType, _
    bypassDemandLoading As Boolean _
)
protected void AddElementGroupFormat(
    IDataObject data,
    ICollection<ModelElement> elements,
    ClosureType closureType,
    bool bypassDemandLoading
)

参数

  • bypassDemandLoading
    类型:System.Boolean
    为创建模型元素集合,是否应该需加载元素链接。

备注

数据格式名假设为 typeof(ElementGroupPrototype).FullName。

.NET Framework 安全性

请参阅

参考

ElementOperations 类

AddElementGroupFormat 重载

Microsoft.VisualStudio.Modeling 命名空间