Workspace.GetTeamProjectsForLocalPaths Method
Gets the team projects in the repository that have the specified paths.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'宣告
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 in the repository, a TeamProject object will not occur at the corresponding index in the list that is returned.
.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.