共用方式為


IElementDirectory.GetElements(IEnumerable<Guid>) Method

Definition

Get the set of elements with ID's in a particular set.

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)

Parameters

elementIds
IEnumerable<Guid>

The set of ID's whose corresponding elements are to be returned

Returns

The set of elements

Applies to