IVsTaskList2::RemoveTasks Method (UInt32, Int32, array<IVsTaskItem^>^)
Visual Studio 2015
Removes tasks from the tasklist.
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::Int32If 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[]
);
Show: