This piece of code shows you how to enumerate around all the interfaces and then properties on an object. It is part of the ExtractActiveListView Client API and will place all the output in the immediate window.
To see the immediate window, you need to select View > Other Windows > Command window inside Visual Studio and then type immed in the command window. This will show the immediate window.