This documentation is archived and is not being maintained.

WorkItemStore.GetWorkItem Method (Int32, DateTime)

Gets the previous state of a work item that is specified by ID and date.

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

public WorkItem GetWorkItem(
	int id,
	DateTime at
)

Parameters

id
Type: System.Int32

The work item ID.

at
Type: System.DateTime

The date of the desired work item state.

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem
The work item state from a specific time.

ExceptionCondition
ArgumentNullException

At least one parameter was null.

The work item is read-only unless the work item that is returned is the latest revision.

Show: