ComUtilities ComUtilities ComUtilities ComUtilities ComUtilities 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
ComUtilitiesComUtilitiesComUtilitiesComUtilitiesComUtilitiesComUtilities

Methods

EnumerableFrom(IEnumHierarchies) EnumerableFrom(IEnumHierarchies) EnumerableFrom(IEnumHierarchies) EnumerableFrom(IEnumHierarchies) EnumerableFrom(IEnumHierarchies) EnumerableFrom(IEnumHierarchies)

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

EnumerableFrom(IEnumWindowFrames) EnumerableFrom(IEnumWindowFrames) EnumerableFrom(IEnumWindowFrames) EnumerableFrom(IEnumWindowFrames) EnumerableFrom(IEnumWindowFrames) EnumerableFrom(IEnumWindowFrames)

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

EnumerableFrom(IVsEnumGuids) EnumerableFrom(IVsEnumGuids) EnumerableFrom(IVsEnumGuids) EnumerableFrom(IVsEnumGuids) EnumerableFrom(IVsEnumGuids) EnumerableFrom(IVsEnumGuids)

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

EnumerableFrom(IVsEnumSearchProviders) EnumerableFrom(IVsEnumSearchProviders) EnumerableFrom(IVsEnumSearchProviders) EnumerableFrom(IVsEnumSearchProviders) EnumerableFrom(IVsEnumSearchProviders) EnumerableFrom(IVsEnumSearchProviders)

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

EnumerableFrom(IVsEnumTaskItems) EnumerableFrom(IVsEnumTaskItems) EnumerableFrom(IVsEnumTaskItems) EnumerableFrom(IVsEnumTaskItems) EnumerableFrom(IVsEnumTaskItems) EnumerableFrom(IVsEnumTaskItems)

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

EnumerableFrom(IVsUICollection) EnumerableFrom(IVsUICollection) EnumerableFrom(IVsUICollection) EnumerableFrom(IVsUICollection) EnumerableFrom(IVsUICollection) EnumerableFrom(IVsUICollection)

Converts a IVsUICollection to an IEnumerable<T>.

EnumerableFrom(IVsUIEnumDataSourceProperties) EnumerableFrom(IVsUIEnumDataSourceProperties) EnumerableFrom(IVsUIEnumDataSourceProperties) EnumerableFrom(IVsUIEnumDataSourceProperties) EnumerableFrom(IVsUIEnumDataSourceProperties) EnumerableFrom(IVsUIEnumDataSourceProperties)

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

EnumerableFrom(IVsUIEnumDataSourceVerbs) EnumerableFrom(IVsUIEnumDataSourceVerbs) EnumerableFrom(IVsUIEnumDataSourceVerbs) EnumerableFrom(IVsUIEnumDataSourceVerbs) EnumerableFrom(IVsUIEnumDataSourceVerbs) EnumerableFrom(IVsUIEnumDataSourceVerbs)

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

IsSameComObject(Object, Object) IsSameComObject(Object, Object) IsSameComObject(Object, Object) IsSameComObject(Object, Object) IsSameComObject(Object, Object) 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) QueryInterfaceIUnknown(Object) QueryInterfaceIUnknown(Object) QueryInterfaceIUnknown(Object) QueryInterfaceIUnknown(Object) QueryInterfaceIUnknown(Object)

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

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to