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
id
Type: System.Int32The work item ID.
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
- 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.