ComUtilities Class

 

Provides miscellaneous methods that can be used when interacting with unmanaged code (COM objects) or interop types.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  Microsoft.VisualStudio.Shell.ComUtilities

public static class ComUtilities

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticEnumerableFrom(IEnumHierarchies)

Gets a .NET-style enumerator (IEnumerable<IVsHierarchy>) from the specified Visual Studio COM enumeration interface.

System_CAPS_pubmethodSystem_CAPS_staticEnumerableFrom(IEnumWindowFrames)

Gets a .NET-style enumerator (IEnumerable<IVsWindowFrame>) from the specified Visual Studio COM enumeration interface.

System_CAPS_pubmethodSystem_CAPS_staticEnumerableFrom(IVsEnumGuids)

Gets a .NET-style enumerator (IEnumerable<Guid>) from the specified Visual Studio COM enumeration interface.

System_CAPS_pubmethodSystem_CAPS_staticEnumerableFrom(IVsEnumSearchProviders)

Gets a .NET-style enumerator (IEnumerable<IVsSearchProvider>) from the specified Visual Studio COM enumeration interface.

System_CAPS_pubmethodSystem_CAPS_staticEnumerableFrom(IVsEnumTaskItems)

Gets a .NET-style enumerator (IEnumerable<IVsTaskItem>) from the specified Visual Studio COM enumeration interface.

System_CAPS_pubmethodSystem_CAPS_staticEnumerableFrom(IVsUICollection)
System_CAPS_pubmethodSystem_CAPS_staticEnumerableFrom(IVsUIEnumDataSourceProperties)

Gets a .NET-style enumerator (IEnumerable<VsUIPropertyDescriptor>) from the specified Visual Studio COM enumeration interface.

System_CAPS_pubmethodSystem_CAPS_staticEnumerableFrom(IVsUIEnumDataSourceVerbs)

Gets a .NET-style enumerator (IEnumerable<string>) from the specified Visual Studio COM enumeration interface.

System_CAPS_pubmethodSystem_CAPS_staticIsSameComObject(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.

System_CAPS_pubmethodSystem_CAPS_staticQueryInterfaceIUnknown(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.

Return to top
Show: