WorkItemStore.GetWorkItem Method (Int32)

Gets the work item that has the specified ID.

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

Syntax

'Declaration
Public Function GetWorkItem ( _
    id As Integer _
) As WorkItem
public WorkItem GetWorkItem(
    int id
)
public:
WorkItem^ GetWorkItem(
    int id
)
member GetWorkItem : 
        id:int -> WorkItem
public function GetWorkItem(
    id : int
) : WorkItem

Parameters

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem
The work item that has the specified ID.

Exceptions

Exception Condition
ArgumentNullException

The id was null.

Remarks

This method returns the latest state of the work item.

.NET Framework Security

See Also

Reference

WorkItemStore Class

GetWorkItem Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace