IElementDirectory.FindElements Method (DomainClassInfo)

Finds all elements in the directory of a specified type.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Function FindElements ( _
    domainClass As DomainClassInfo _
) As ReadOnlyCollection(Of ModelElement)
'使用
Dim instance As IElementDirectory
Dim domainClass As DomainClassInfo
Dim returnValue As ReadOnlyCollection(Of ModelElement)

returnValue = instance.FindElements(domainClass)
ReadOnlyCollection<ModelElement> FindElements(
    DomainClassInfo domainClass
)
ReadOnlyCollection<ModelElement^>^ FindElements(
    DomainClassInfo^ domainClass
)
function FindElements(
    domainClass : DomainClassInfo
) : ReadOnlyCollection<ModelElement>

Parameters

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.

Permissions

See Also

Reference

IElementDirectory Interface

IElementDirectory Members

FindElements Overload

Microsoft.VisualStudio.Modeling Namespace