title: .NET is there a way to discover the members of a COM-object
body: <p>In our WPF-application that is hosted in IE we are retrieving some context info from a COM-object which has the type of System.__ComObject (JScriptTypeInfo).
  We retrieve data from it using its type:</p>
  
  <pre><code>Type type = obj.GetType();
  object value = type.InvokeMember(name, BindingFlags.GetProperty | BindingFlags.IgnoreCase, null, obj, null);
  </code></pre>
  
  <p>where <strong>name</strong> is the property we want to retrieve.
  The problem is that some properties are retrieved but some are not - an exception is thrown (System.Runtime.InteropServices.COMException
  (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))</p>
  
  <p>So is it possible to retrieve the names of all the properties of this COM-object and how?</p>
  
  <p>TIA</p>