Condividi tramite


ComUtilities Class

Definition

A class providing miscellaneous methods used when interacting with unmanaged code (COM objects) and interop types

public ref class ComUtilities abstract sealed
public ref class ComUtilities abstract sealed
class ComUtilities abstract sealed
public static class ComUtilities
type ComUtilities = class
Public Class ComUtilities
Inheritance
ComUtilities

Methods

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)

Verify that object represent the same instance of an object. This essentially compares the IUnkown pointers of the 2 objects. This is needed in scenario where aggregation is involved.

QueryInterfaceIUnknown(Object)

Retrieve the IUnknown for the managed or COM object passed in.

Applies to