Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Public Function GetWorkItem ( _
id As Integer, _
at As DateTime _
) As WorkItem
public WorkItem GetWorkItem(
int id,
DateTime at
)
public:
WorkItem^ GetWorkItem(
int id,
DateTime at
)
member GetWorkItem :
id:int *
at:DateTime -> WorkItem
public function GetWorkItem(
id : int,
at : DateTime
) : WorkItem
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | At least one parameter was null. |
Remarks
The work item is read-only unless the work item that is returned is the latest revision.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.