Reflection and COM objects

From: Bobby C. Jones ("Bobby)
Date: 03/10/04


Date: Wed, 10 Mar 2004 12:56:41 -0600

I have a COM object and I need to see if it implements an interface that
contains a specific property. This doesn't work although I've set up a test
run where myComObject was instantiated as an interface with a Style
property.

Type myType = myComObject.GetType();
PropertyInfo style = myType.GetProperty("Style");

Any guidance is much appreciated!

-- 
Bobby C. Jones


Relevant Pages

  • Re: Reflection and COM objects
    ... This turned out to be a case of my ignorance of reflection ... > run where myComObject was instantiated as an interface with a Style ... > PropertyInfo style = myType.GetProperty; ... > Bobby C. Jones ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Progressing to OOP & modules for web apps
    ... RA Jones wrote: ... > interface to MySQL db via Perl applications. ...
    (comp.lang.perl.misc)

Loading