IElementDirectory.FindElements Method (DomainClassInfo, Boolean)
Finds all elements in the directory of a specified type.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Function FindElements ( _
domainClass As DomainClassInfo, _
includeDescendants As Boolean _
) As ReadOnlyCollection(Of ModelElement)
ReadOnlyCollection<ModelElement> FindElements(
DomainClassInfo domainClass,
bool includeDescendants
)
ReadOnlyCollection<ModelElement^>^ FindElements(
DomainClassInfo^ domainClass,
bool includeDescendants
)
abstract FindElements :
domainClass:DomainClassInfo *
includeDescendants:bool -> ReadOnlyCollection<ModelElement>
function FindElements(
domainClass : DomainClassInfo,
includeDescendants : boolean
) : ReadOnlyCollection<ModelElement>
Parameters
domainClass
Type: Microsoft.VisualStudio.Modeling.DomainClassInfoThe domain class type.
includeDescendants
Type: System.Booleantrue to include elements of all domain classes derived from the domain class specified in the </w:t></w:r><w:r><w:rPr><w:rStyle w:val="ParameterReference"/></w:rPr><w:t>domainClass</w:t></w:r><w:r><w:t> parameter; otherwise, false.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<ModelElement>
A read-only collection of the type specified.
Remarks
An empty list is returned if no elements were found.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.