다음을 통해 공유


IElementDirectory.FindElements<T> Method

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

‘선언
Function FindElements(Of T As ModelElement) As ReadOnlyCollection(Of T)
ReadOnlyCollection<T> FindElements<T>()
where T : ModelElement
generic<typename T>
where T : ModelElement
ReadOnlyCollection<T>^ FindElements()
abstract FindElements : unit -> ReadOnlyCollection<'T>  when 'T : ModelElement
JScript does not support generic types or methods.

Type Parameters

  • T
    Type of elements.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<T>
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