创建基于的特定关闭类型的 ElementGroupPrototype 为列表根元素
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
语法
声明
Public Function GetClosurePrototypeGroup ( _
rootElements As ICollection(Of ModelElement), _
type As ClosureType, _
bypassDemandLoading As Boolean _
) As ElementGroupPrototype
public ElementGroupPrototype GetClosurePrototypeGroup(
ICollection<ModelElement> rootElements,
ClosureType type,
bool bypassDemandLoading
)
参数
- rootElements
类型:System.Collections.Generic.ICollection<ModelElement>
根元素的集合开始关闭 framework 的。
- type
类型:Microsoft.VisualStudio.Modeling.ClosureType
生成的闭包的类型
- bypassDemandLoading
类型:System.Boolean
指示是否能够绕过要求加载,当窗体关闭时
返回值
类型:Microsoft.VisualStudio.Modeling.ElementGroupPrototype
在关闭结构选择的元素集合的 ElementGroupPrototype
备注
不是目标的任何组包含的所有组元素,嵌入关系,标记为 ElementGroupPrototype 的根元素。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。