如果根元素列表指定,则创建给定关闭类型的默认分区的元素组原型。
命名空间: 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 _
) As ElementGroupPrototype
public ElementGroupPrototype GetClosurePrototypeGroup(
ICollection<ModelElement> rootElements,
ClosureType type
)
参数
- rootElements
类型:System.Collections.Generic.ICollection<ModelElement>
根元素的集合。
- type
类型:Microsoft.VisualStudio.Modeling.ClosureType
要生成的闭包的类型。
返回值
类型:Microsoft.VisualStudio.Modeling.ElementGroupPrototype
元素组原型集合。
备注
元素组原型的 DistinguishedElements 列表中填充:,其中填充了根元素的列表
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。