Compartilhar via


IVsTaskList2 Interface

Manipulates items in the TaskList window. Implemented by the environment, although you can write your own implementation to provide custom task items.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("62357211-57FD-4425-A9E5-9A6E0D3B731C")> _
Public Interface IVsTaskList2
[InterfaceTypeAttribute()]
[GuidAttribute("62357211-57FD-4425-A9E5-9A6E0D3B731C")]
public interface IVsTaskList2
[InterfaceTypeAttribute()]
[GuidAttribute(L"62357211-57FD-4425-A9E5-9A6E0D3B731C")]
public interface class IVsTaskList2
[<InterfaceTypeAttribute()>]
[<GuidAttribute("62357211-57FD-4425-A9E5-9A6E0D3B731C")>]
type IVsTaskList2 =  interface end
public interface IVsTaskList2

The IVsTaskList2 type exposes the following members.

Methods

  Name Description
Public method BeginTaskEdit Scrolls if necessary to make the task visible, selects it, and enters edit mode with the focus on the specified field. If the task does not belong to the active provider or the specified field is not a visible, editable field, the method will fail.
Public method EnumSelectedItems Returns an enumerator that will enumerate all the selected items, in order from last selected to first selected.
Public method GetActiveProvider Returns the currently active task provider.
Public method GetCaretPos Returns the item that currently has the caret. This item is always among the selected items.
Public method GetSelectionCount Returns the count of selected items, which may be anywhere from zero to the total count of items in the task list.
Public method RefreshAllProviders Refreshes all tasks from all registered providers.
Public method RefreshOrAddTasks Refreshes all cached information for the given tasks.
Public method RemoveTasks Removes tasks from the tasklist.
Public method SelectItems Selects zero or more items. Pass in zero for nItems to remove the selection entirely. All non-filtered items in pItems will be selected and the last one will become the caret item. Filtered items are ignored.
Public method SetActiveProvider Selects the provider currently displayed in the tasklist.

Top

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace