IElementDirectory.FindElements Method

Definition

Overloads

FindElements(DomainClassInfo)

Finds all elements in directory of specified domain class.

FindElements(Guid)

Finds all elements in directory of specified domain class.

FindElements(DomainClassInfo, Boolean)

Finds all elements in directory of specified domain class.

FindElements(Guid, Boolean)

Finds all elements in directory of specified domain class.

FindElements<T>()

Finds all elements in directory of specified type.

FindElements<T>(Boolean)

Finds all elements in directory of specified type.

FindElements(DomainClassInfo)

Finds all elements in directory of specified domain class.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ FindElements(Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement> FindElements (Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass);
abstract member FindElements : Microsoft.VisualStudio.Modeling.DomainClassInfo -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement>
Public Function FindElements (domainClass As DomainClassInfo) As ReadOnlyCollection(Of ModelElement)

Parameters

domainClass
DomainClassInfo

Domain class.

Returns

List of elements found (empty list if no elements were found).

Applies to

FindElements(Guid)

Finds all elements in directory of specified domain class.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ FindElements(Guid domainClassId);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement> FindElements (Guid domainClassId);
abstract member FindElements : Guid -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement>
Public Function FindElements (domainClassId As Guid) As ReadOnlyCollection(Of ModelElement)

Parameters

domainClassId
Guid

Domain class Id.

Returns

List of elements found (empty list if no elements were found).

Applies to

FindElements(DomainClassInfo, Boolean)

Finds all elements in directory of specified domain class.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ FindElements(Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, bool includeDescendants);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement> FindElements (Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass, bool includeDescendants);
abstract member FindElements : Microsoft.VisualStudio.Modeling.DomainClassInfo * bool -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement>
Public Function FindElements (domainClass As DomainClassInfo, includeDescendants As Boolean) As ReadOnlyCollection(Of ModelElement)

Parameters

domainClass
DomainClassInfo

Domain class.

includeDescendants
Boolean

Whether to include elements of all domain classes derived from given domain class.

Returns

List of elements found (empty list if no elements were found).

Applies to

FindElements(Guid, Boolean)

Finds all elements in directory of specified domain class.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ FindElements(Guid domainClassId, bool includeDescendants);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement> FindElements (Guid domainClassId, bool includeDescendants);
abstract member FindElements : Guid * bool -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement>
Public Function FindElements (domainClassId As Guid, includeDescendants As Boolean) As ReadOnlyCollection(Of ModelElement)

Parameters

domainClassId
Guid

Domain class Id.

includeDescendants
Boolean

Whether to include elements of all domain classes derived from given domain class.

Returns

List of elements found (empty list if no elements were found).

Applies to

FindElements<T>()

Finds all elements in directory of specified type.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Modeling::ModelElement System::Collections::ObjectModel::ReadOnlyCollection<T> ^ FindElements();
public System.Collections.ObjectModel.ReadOnlyCollection<T> FindElements<T> () where T : Microsoft.VisualStudio.Modeling.ModelElement;
abstract member FindElements : unit -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> Microsoft.VisualStudio.Modeling.ModelElement)> (requires 'T :> Microsoft.VisualStudio.Modeling.ModelElement)
Public Function FindElements(Of T As ModelElement) () As ReadOnlyCollection(Of T)

Type Parameters

T

Type of elements.

Returns

List of elements found (empty list if no elements were found).

Applies to

FindElements<T>(Boolean)

Finds all elements in directory of specified type.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Modeling::ModelElement System::Collections::ObjectModel::ReadOnlyCollection<T> ^ FindElements(bool includeDescendants);
public System.Collections.ObjectModel.ReadOnlyCollection<T> FindElements<T> (bool includeDescendants) where T : Microsoft.VisualStudio.Modeling.ModelElement;
abstract member FindElements : bool -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> Microsoft.VisualStudio.Modeling.ModelElement)> (requires 'T :> Microsoft.VisualStudio.Modeling.ModelElement)
Public Function FindElements(Of T As ModelElement) (includeDescendants As Boolean) As ReadOnlyCollection(Of T)

Type Parameters

T

Type of elements.

Parameters

includeDescendants
Boolean

Whether to include elements of all domain classes derived from given domain class.

Returns

List of elements found (empty list if no elements were found).

Applies to