IElementDirectory.GetElements(IEnumerable<Guid>) 方法

定义

获取特定集中 ID 为的元素集。

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ GetElements(System::Collections::Generic::IEnumerable<Guid> ^ elementIds);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement> GetElements (System.Collections.Generic.IEnumerable<Guid> elementIds);
abstract member GetElements : seq<Guid> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement>
Public Function GetElements (elementIds As IEnumerable(Of Guid)) As ReadOnlyCollection(Of ModelElement)

参数

elementIds
IEnumerable<Guid>

要返回其相应元素的 ID 的集合

返回

ReadOnlyCollection<ModelElement>

元素集

适用于