Hi guys,
This question was asked before. It's marked as answered (link).
However, till now the answer is not the best choice anymore.
As MSDN described, (http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.client.tfsteamprojectcollectionfactory.getteamprojectcollection.aspx)
Method GetTeamProjectCollection(Uri, ICredentialsProvider) was obsolete.
So what will be the replacement for us?