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)
Syntax
'Declaration
Public Function GetAllTeamProjects ( _
refresh As Boolean _
) As TeamProject()
'Usage
Dim instance As VersionControlServer
Dim refresh As Boolean
Dim returnValue As TeamProject()
returnValue = instance.GetAllTeamProjects(refresh)
public TeamProject[] GetAllTeamProjects(
bool refresh
)
public:
array<TeamProject^>^ GetAllTeamProjects(
bool refresh
)
public function GetAllTeamProjects(
refresh : boolean
) : TeamProject[]
Parameters
refresh
Type: System.BooleanIf 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: array<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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.