WorkItemStore.GetWorkItem Method (Int32, DateTime)
Returns the WorkItem revision that has the specified ID and that was revised on the specified date at the specified time.
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
'Usage
Dim instance As WorkItemStore
Dim id As Integer
Dim at As DateTime
Dim returnValue As WorkItem
returnValue = instance.GetWorkItem(id, _
at)
public WorkItem GetWorkItem(
int id,
DateTime at
)
public:
WorkItem^ GetWorkItem(
int id,
DateTime at
)
public function GetWorkItem(
id : int,
at : DateTime
) : WorkItem
Parameters
id
Type: System.Int32A WorkItem ID.
at
Type: System.DateTimeThe date and time the revision was completed specified as DateTime.
Return Value
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem
Returns the specified WorkItem.
Remarks
The returned WorkItem is read-only unless the latest revision is returned.
.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.