Share via


VersionControlServer.GetTeamProject Method

Gets the TeamProject in the repository with the specified name.

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

Syntax

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

Parameters

Return Value

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

Exceptions

Exception Condition
VersionControlException

Thrown if the specified path does resolve to a TeamProject.

.NET Framework Security

See Also

Reference

VersionControlServer Class

Microsoft.TeamFoundation.VersionControl.Client Namespace