VersionControlServer.GetAllTeamProjects Method

At the top level of the Team Foundation Server folder hierarchy are the team projects: the folders immediately below $/ in the tree. All folders and files under source control are directly or indirectly below the team projects. This function gets a list of all the team projects on the server that is running Team Foundation Server.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public TeamProject[] GetAllTeamProjects(
	bool refresh


Type: System.Boolean

If refresh is false, the team projects may be getd from a cache kept on the user's computer. If refresh is true, that cache will first be updated from the server that is running Team Foundation Server.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.TeamProject[]
The returned TeamProject objects contain the names, check in and checkout policies, and note fields for each team project on the server.

Community Additions