Is there a .NET equivalent to Component Categories

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

We are re-writing (in .NET) an application that makes heavy use of COM
component categeories. The basic idea is to give the user a drop-down of
objects from a particular category that are installed on their machine. This
was done in COM by using COM's component category manager. Is there anything
similar in .NET?

Thanks,
Bill
 
Hi Bill,

I'm not quite sure what you're trying to do. Are you trying to list all the
COM components installed on the machine from a particular category or are
you trying to list all the .net assemblies on the machine's GAC?

If the first one is true, you just need to interop with the component
category manager. You can get more information in
microsoft.public.dotnet.framework.interop newsgroup.

If the latter one is true, as far as I know, there isn't such components
available in .NET framework.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Hi Kevin,

Thank you for your reply. I want to get a listing of all .NET components in
the GAC that support a specified interface. I do something similar in an
earlier COM-based application using component categories...every COM object
that implements the specified interface implements a corresponding category.
In that way, I can use the component manager to get a listing of all objects
that support the interface I'm interested in.

Bill
 
Kevin,

We knowabout gacutil for adding/removing dlls to/from the GAC, however that
is an executable. In general, are there any componenets that you know of
that we could use that will at least enumerate the components installed in
the GAC? Then perhaps we could use reflection and custom attributes to
achieve the same effect? I have heard thate latter approach alluded to, but
no code samples. People have basically said to install all of your
componenets in a particular directory, then use reflection to find the object
you are interested in.

If you, or anybody eslse on this board have anything that might help, that
would be greatly appreciated!


Thanks,


Steve
 
Back
Top