Share via


PickWorkItemsControl.GetCurrentlySelectedWorkItem Method

Returns the selected (highlighted, not checked) work item in the list. Returns 'null' if there is no work item selected.

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

Syntax

'Declaration
Public Function GetCurrentlySelectedWorkItem As WorkItem
public WorkItem GetCurrentlySelectedWorkItem()
public:
WorkItem^ GetCurrentlySelectedWorkItem()
member GetCurrentlySelectedWorkItem : unit -> WorkItem
public function GetCurrentlySelectedWorkItem() : WorkItem

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem

.NET Framework Security

See Also

Reference

PickWorkItemsControl Class

Microsoft.TeamFoundation.WorkItemTracking.Controls Namespace