Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IVsTaskList2.RemoveTasks Method

Removes tasks from the tasklist.

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

int RemoveTasks(
	uint vsProviderCookie,
	int nTasks,
	IVsTaskItem[] prgTasks


Type: System.UInt32

[in] The task provider ID given by the RegisterTaskProvider method.

Type: System.Int32

[in] The number of tasks to remove

Type: Microsoft.VisualStudio.Shell.Interop.IVsTaskItem[]

[in] An array of IVsTaskList items to remove.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell80.idl:

HRESULT RemoveTasks(
    [in] VSCOOKIE vsProviderCookie,
    [in] int nTasks,
    [in, size_is(nTasks)] IVsTaskItem* prgTasks[]

© 2015 Microsoft