从特殊集合 ID 中获取元素集合。
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Function GetElements ( _
elementIds As IEnumerable(Of Guid) _
) As ReadOnlyCollection(Of ModelElement)
ReadOnlyCollection<ModelElement> GetElements(
IEnumerable<Guid> elementIds
)
参数
- elementIds
类型:System.Collections.Generic.IEnumerable<Guid>
对应的元素将返回的 IDs 集合。
返回值
类型:System.Collections.ObjectModel.ReadOnlyCollection<ModelElement>
ModelElement 对象的只读集合。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。