Share via


VersionControlServer.GetTeamProjectForServerPath Method

Gets the TeamProject for the specified server path.

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

Syntax

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

Parameters

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.TeamProject
The TeamProject with the specified path.

Exceptions

Exception Condition
VersionControlException

Thrown if the specified path does not resolve to a TeamProject.

.NET Framework Security

See Also

Reference

VersionControlServer Class

Microsoft.TeamFoundation.VersionControl.Client Namespace