Share via


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)

Syntax

'Declaration
Public Function GetTeamProjectForLocalPath ( _
    localPath As String _
) As TeamProject
public TeamProject GetTeamProjectForLocalPath(
    string localPath
)
public:
TeamProject^ GetTeamProjectForLocalPath(
    String^ localPath
)
member GetTeamProjectForLocalPath : 
        localPath:string -> TeamProject
public function GetTeamProjectForLocalPath(
    localPath : String
) : TeamProject

Parameters

Return Value

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

Exceptions

Exception Condition
VersionControlException

Remarks

The local path must be in this workspace.

.NET Framework Security

See Also

Reference

Workspace Class

Microsoft.TeamFoundation.VersionControl.Client Namespace