ElementOperations.AddElementGroupFormat 方法 (IDataObject, ICollection<ModelElement>, ClosureType, Boolean)
使用 ModelElements,的指定集合添加 ElementGroupPrototype 格式转换为指定的 IDataObject。 可以从派生类调用强制元素链接要求加载以创建模型元素的集合。
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.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
)
参数
- data
类型:System.Windows.Forms.IDataObject
添加 ElementGroupPrototype 数据格式的 IDataObject。
- elements
类型:System.Collections.Generic.ICollection<ModelElement>
ModelElements 的集合。
- closureType
类型:Microsoft.VisualStudio.Modeling.ClosureType
使用的闭包的类型筛选元素。
- bypassDemandLoading
类型:System.Boolean
元素链接是否应加载的要求以创建模型元素的集合。
备注
数据格式名称假定为 typeof (ElementGroupPrototype) .FullName。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。