다음을 통해 공유


IVsTaskList2 Interface

Definition

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

public interface class IVsTaskList2
public interface class IVsTaskList2
__interface IVsTaskList2
[System.Runtime.InteropServices.Guid("62357211-57FD-4425-A9E5-9A6E0D3B731C")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsTaskList2
[<System.Runtime.InteropServices.Guid("62357211-57FD-4425-A9E5-9A6E0D3B731C")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsTaskList2 = interface
Public Interface IVsTaskList2
Attributes

Methods

BeginTaskEdit(IVsTaskItem, Int32)

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.

EnumSelectedItems(IVsEnumTaskItems)

Returns an enumerator that will enumerate all the selected items, in order from last selected to first selected.

GetActiveProvider(IVsTaskProvider)

Starting in Visual Studio 2015, returns E_NOTIMPL.

GetCaretPos(IVsTaskItem)

Returns the item that currently has the caret. This item is always among the selected items.

GetSelectionCount(Int32)

Returns the count of selected items, which may be anywhere from zero to the total count of items in the task list.

RefreshAllProviders()

Refreshes all tasks from all registered providers.

RefreshOrAddTasks(UInt32, Int32, IVsTaskItem[])

Refreshes all cached information for the given tasks.

RemoveTasks(UInt32, Int32, IVsTaskItem[])

Removes tasks from the tasklist.

SelectItems(Int32, IVsTaskItem[], UInt32, UInt32)

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.

SetActiveProvider(Guid)

Selects the provider currently displayed in the tasklist.

Applies to