This documentation is archived and is not being maintained.

Workspace::GetTeamProjectForLocalPath Method

Gets the TeamProject instance that contains the specified path.

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

public:
TeamProject^ GetTeamProjectForLocalPath(
	String^ localPath
)

Parameters

localPath
Type: System::String

The local path.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client::TeamProject
The TeamProject instance for the specified local path or a VersionControlException.

The local path must be in this workspace.

Show: