Compartilhar via


WorkItemStore.GetWorkItem Method (Uri, DateTime)

Gets the work item state from a specific time for viewing.

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

Syntax

'Declaração
Public Function GetWorkItem ( _
    uri As Uri, _
    at As DateTime _
) As WorkItem
public WorkItem GetWorkItem(
    Uri uri,
    DateTime at
)
public:
WorkItem^ GetWorkItem(
    Uri^ uri, 
    DateTime at
)
member GetWorkItem : 
        uri:Uri * 
        at:DateTime -> WorkItem 
public function GetWorkItem(
    uri : Uri, 
    at : DateTime
) : WorkItem

Parameters

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

See Also

Reference

WorkItemStore Class

GetWorkItem Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace