I'm trying to connect to TFS using:
TfsTeamProjectCollection teamProjectCollection
= new TfsTeamProjectCollection(new Uri(teamProjectCollectionUrl));
but with credentials. For example I want to connect to "http://tfs.mydomain.com/sandbox/" with credentials "myusername" and "mypassword"...what is the correct way to set up credentials for this?
After getting connected using the credentials I know how to do everything else i need.