Compartilhar via


IElementDirectory.FindElements Method (Guid)

Finds all elements in the directory of a specified type.

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

Syntax

'Declaração
Function FindElements ( _
    domainClassId As Guid _
) As ReadOnlyCollection(Of ModelElement)
ReadOnlyCollection<ModelElement> FindElements(
    Guid domainClassId
)
ReadOnlyCollection<ModelElement^>^ FindElements(
    Guid domainClassId
)
abstract FindElements : 
        domainClassId:Guid -> ReadOnlyCollection<ModelElement> 
function FindElements(
    domainClassId : Guid
) : ReadOnlyCollection<ModelElement>

Parameters

  • domainClassId
    Type: System.Guid
    The ID of the domain class to find.

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

See Also

Reference

IElementDirectory Interface

FindElements Overload

Microsoft.VisualStudio.Modeling Namespace