ComUtilities Class
Provides miscellaneous methods that can be used when interacting with unmanaged code (COM objects) or interop types.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Shell.ComUtilities
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
Public NotInheritable Class ComUtilities
public static class ComUtilities
The ComUtilities type exposes the following members.
Methods
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(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 | 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 | Retrieves the IUnknown for the specified managed or COM object. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.