Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Get selected item in Server Explorer

$
0
0

I am creating a VS Package to add a menu item to the context menu of a database table in Server Explorer. I've made it to the point where my menu item shows up in the context menu of all database objects in Server Explorer. Now I need to make it show up only on tables. I have implemented BeforeQueryStatus to hide or show the menu item. My problem is I don't know how to get the currently selected Item. All the examples I have found to get the selected item are related to getting the IVsHierarchy of the solution/project. So, couple of questions

1. Is there a IVsHierarchy in Server Explorer?

2. If not, what should I use? If so, how do I retrieve it?

Thanks, Ken


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>