IVsTaskList2::RemoveTasks Method (UInt32, Int32, array<IVsTaskItem^>^)

 

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(
	unsigned int vsProviderCookie,
	int nTasks,
	array<IVsTaskItem^>^ prgTasks
)

Parameters

vsProviderCookie
Type: System::UInt32

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

nTasks
Type: System::Int32

[in] The number of tasks to remove

prgTasks
Type: array<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.

From vsshell80.idl:

HRESULT RemoveTasks(
    [in] VSCOOKIE vsProviderCookie,
    [in] int nTasks,
    [in, size_is(nTasks)] IVsTaskItem* prgTasks[]
);
Return to top
Show: