all groups > visual studio .net ide > march 2004 >
You're in the

visual studio .net ide

group:

How do I get the Data Connection value from Server Explorer in c#?


How do I get the Data Connection value from Server Explorer in c#? Nigil LaVey
3/25/2004 3:37:51 AM
visual studio .net ide:
hi guys.

Is there a way to retrieve the Data Connection "localhost.master.dbo"
ConnectionStrings, DataBase values Etc.... from the Server Explorer of
Visual Studio.Net?
I am abled to retrieve the Node Name by using EnvDTE.UIHierachy. but I am
facing Reflection problems ... take a look at my code below.

foreach(EnvDTE.UIHierarchyItem Item in Items)
{
Type obj_Type=Item.Object.GetType();
PropertyInfo[] obj_PropertyInfo=obj_Type.GetProperties();
Console.WriteLine(PropertyInfo.Length)
// The PropertyInfo.Length returning 0 values..
}

any ideas?

pls advise,
Nigil LaVey

Re: How do I get the Data Connection value from Server Explorer in c#? Nigil LaVey
3/25/2004 6:11:18 PM
hi guys..

can I fire an method say like... From Server Explorer?

cos when u select a node and right click. it shows all method avaiable on
the contextMenu.
so can I fire one of those method that was defined from the contextMenu?

regards,
Nigil LaVey


[quoted text, click to view]

AddThis Social Bookmark Button