ComUtilities Class
Provides miscellaneous methods that can be used when interacting with unmanaged code (COM objects) or interop types.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | EnumerableFrom(IEnumHierarchies) | Gets a .NET-style enumerator (IEnumerable<IVsHierarchy>) from the specified Visual Studio COM enumeration interface. |
![]() ![]() | EnumerableFrom(IEnumWindowFrames) | Gets a .NET-style enumerator (IEnumerable<IVsWindowFrame>) from the specified Visual Studio COM enumeration interface. |
![]() ![]() | EnumerableFrom(IVsEnumGuids) | Gets a .NET-style enumerator (IEnumerable<Guid>) from the specified Visual Studio COM enumeration interface. |
![]() ![]() | EnumerableFrom(IVsEnumSearchProviders) | Gets a .NET-style enumerator (IEnumerable<IVsSearchProvider>) from the specified Visual Studio COM enumeration interface. |
![]() ![]() | EnumerableFrom(IVsEnumTaskItems) | Gets a .NET-style enumerator (IEnumerable<IVsTaskItem>) from the specified Visual Studio COM enumeration interface. |
![]() ![]() | EnumerableFrom(IVsUICollection) | Converts a IVsUICollection to an IEnumerable<T>. |
![]() ![]() | EnumerableFrom(IVsUIEnumDataSourceProperties) | Gets a .NET-style enumerator (IEnumerable<VsUIPropertyDescriptor>) from the specified Visual Studio COM enumeration interface. |
![]() ![]() | EnumerableFrom(IVsUIEnumDataSourceVerbs) | Gets a .NET-style enumerator (IEnumerable<string>) from the specified Visual Studio COM enumeration interface. |
![]() ![]() | IsSameComObject(Object, Object) | Verifies that the specified objects represent the same instance of an object. This method essentially compares the IUnknown pointers of the two objects, which is needed in scenarios where aggregation is involved. |
![]() ![]() | QueryInterfaceIUnknown(Object) | Retrieves the IUnknown for the specified managed or COM object. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

