다음을 통해 공유


ComUtilities.EnumerableFrom Method

Include Protected Members
Include Inherited Members

Returns .NET-style enumerators from Visual Studio COM enumeration interfaces. This allows you to more easily enumerate shell objects and not have to call Reset or Next methods in the enumerator interface, handle returned HRESULTS, and so on.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member EnumerableFrom(IEnumHierarchies) Gets a .NET-style enumerator (IEnumerable<IVsHierarchy>) from the specified Visual Studio COM enumeration interface.
Public methodStatic member EnumerableFrom(IEnumWindowFrames) Gets a .NET-style enumerator (IEnumerable<IVsWindowFrame>) from the specified Visual Studio COM enumeration interface.
Public methodStatic member EnumerableFrom(IVsEnumGuids) Gets a .NET-style enumerator (IEnumerable<Guid>) from the specified Visual Studio COM enumeration interface.
Public methodStatic member EnumerableFrom(IVsEnumSearchProviders) Gets a .NET-style enumerator (IEnumerable<IVsSearchProvider>) from the specified Visual Studio COM enumeration interface.
Public methodStatic member EnumerableFrom(IVsEnumTaskItems) Gets a .NET-style enumerator (IEnumerable<IVsTaskItem>) from the specified Visual Studio COM enumeration interface.
Public methodStatic member EnumerableFrom(IVsUIEnumDataSourceProperties) Gets a .NET-style enumerator (IEnumerable<VsUIPropertyDescriptor>) from the specified Visual Studio COM enumeration interface.
Public methodStatic member EnumerableFrom(IVsUIEnumDataSourceVerbs) Gets a .NET-style enumerator (IEnumerable<string>) from the specified Visual Studio COM enumeration interface.

Top

See Also

Reference

ComUtilities Class

Microsoft.VisualStudio.Shell Namespace