ComUtilities.EnumerableFrom Method (IEnumHierarchies)
Gets a .NET-style enumerator (IEnumerable<IVsHierarchy>) from the specified Visual Studio COM enumeration interface.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Function EnumerableFrom ( _
enumerator As IEnumHierarchies _
) As IEnumerable(Of IVsHierarchy)
public static IEnumerable<IVsHierarchy> EnumerableFrom(
IEnumHierarchies enumerator
)
public:
static IEnumerable<IVsHierarchy^>^ EnumerableFrom(
IEnumHierarchies^ enumerator
)
static member EnumerableFrom :
enumerator:IEnumHierarchies -> IEnumerable<IVsHierarchy>
public static function EnumerableFrom(
enumerator : IEnumHierarchies
) : IEnumerable<IVsHierarchy>
Parameters
enumerator
Type: Microsoft.VisualStudio.Shell.Interop.IEnumHierarchiesThe Visual-Studio COM enumeration (IEnumHierarchies).
Return Value
Type: IEnumerable<IVsHierarchy>
The .NET-style enumerator.
.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.