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 TeamProject[] GetTeamProjectsForLocalPaths(
	string[] localPaths
)

Parameters

localPaths
Type: System.String[]

The local paths for which to get the team projects.

Return Value

Type: 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: