创建基于给定根元素列表的给定关闭类型的 ElementGroupPrototype
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.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>
要从中开始关闭该步行的根元素的集合。
- type
类型:Microsoft.VisualStudio.Modeling.ClosureType
要生成的闭包的类型
- bypassDemandLoading
类型:System.Boolean
指示当窗体关闭时是否绕过要求加载。
返回值
类型:Microsoft.VisualStudio.Modeling.ElementGroupPrototype
在关闭步行中选择的元素集合的 ElementGroupPrototype
备注
不是目标任何组包含的任何组元素,嵌入关系,标记为在 ElementGroupPrototype 的根元素。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。