Compartilhar via


ProjectCollection.GetById Method

Gets a project in this collection by using its ID.

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

Syntax

'Declaração
Public Function GetById ( _
    projectId As Integer _
) As Project
public Project GetById(
    int projectId
)
public:
Project^ GetById(
    int projectId
)
member GetById : 
        projectId:int -> Project 
public function GetById(
    projectId : int
) : Project

Parameters

  • projectId
    Type: System.Int32
    The ID of the desired project.

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client.Project
The project in this collection that has the specified ID.

.NET Framework Security

See Also

Reference

ProjectCollection Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace