This documentation is archived and is not being maintained.

Workspace::GetTeamProjectsForLocalPaths Method

Gets the team projects on the version-control repository that have the specified paths.

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

public:
array<TeamProject^>^ GetTeamProjectsForLocalPaths(
	array<String^>^ localPaths
)

Parameters

localPaths
Type: array<System::String>

The local paths for which to get the team projects.

Return Value

Type: array<Microsoft.TeamFoundation.VersionControl.Client::TeamProject>
The team projects that contain the specified paths.

If a path is not mapped, is cloaked, or does not correspond to a team project on the version-control repository, a TeamProject object will not occur at the corresponding index in the list that is returned.

Show: