共用方式為


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)

Syntax

'Declaration
Public Function GetTeamProjectsForLocalPaths ( _
    localPaths As String() _
) As TeamProject()
public TeamProject[] GetTeamProjectsForLocalPaths(
    string[] localPaths
)
public:
array<TeamProject^>^ GetTeamProjectsForLocalPaths(
    array<String^>^ localPaths
)
member GetTeamProjectsForLocalPaths : 
        localPaths:string[] -> TeamProject[] 
public function GetTeamProjectsForLocalPaths(
    localPaths : String[]
) : TeamProject[]

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.

Remarks

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.

.NET Framework Security

See Also

Reference

Workspace Class

Microsoft.TeamFoundation.VersionControl.Client Namespace