CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

Enumerate the project collections registered for the current user

185 Views
Copy Code Show/Hide Line Numbers
using Microsoft.TeamFoundation.Client;
 
RegisteredProjectCollection[] collections = RegisteredInstances.GetProjectCollections();
 
if (collections != null)
{
    foreach (RegisteredProjectCollection collection in collections)
    {
        Console.WriteLine(String.Format("{0} - {1}", collection.Name, collection.Uri));
    }
}
by Jim Lamb
  October 29, 2009 @ 7:39pm
Tags:

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate