thanks a lot to your replay.
i written like this
public List<string> ListAllProjects
{
TeamFoundationServer teamFoundationServer = TeamFoundationServerFactory.GetServer(@"http://tfsservername/");
teamFoundationServer.Authenticate();
WorkItemStore workItemStore = new WorkItemStore(@"http://tfsservername");
List<string> list = new List<string>();
foreach (Project pr in workItemStore.Projects)
{
list.Add(pr.Name);
}
if (list.Count == 0)
list.Add("Not Found");
else
{
foreach(string item in ListAllProjects)
{
if(item == "projectname1")
{
return item;
}
}
}
but not getting that particular projectname1.
please help to me how can i will write.is there anotherway?