Partager via


IVsTaskList2.RemoveTasks(UInt32, Int32, IVsTaskItem[]) Method

Definition

Removes tasks from the tasklist.

public:
 int RemoveTasks(System::UInt32 vsProviderCookie, int nTasks, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsTaskItem ^> ^ prgTasks);
public:
 int RemoveTasks(unsigned int vsProviderCookie, int nTasks, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsTaskItem ^> ^ prgTasks);
int RemoveTasks(unsigned int vsProviderCookie, int nTasks, std::Array <Microsoft::VisualStudio::Shell::Interop::IVsTaskItem const &> const & prgTasks);
public int RemoveTasks (uint vsProviderCookie, int nTasks, Microsoft.VisualStudio.Shell.Interop.IVsTaskItem[] prgTasks);
abstract member RemoveTasks : uint32 * int * Microsoft.VisualStudio.Shell.Interop.IVsTaskItem[] -> int
Public Function RemoveTasks (vsProviderCookie As UInteger, nTasks As Integer, prgTasks As IVsTaskItem()) As Integer

Parameters

vsProviderCookie
UInt32

[in] The task provider ID given by the RegisterTaskProvider(IVsTaskProvider, UInt32) method.

nTasks
Int32

[in] The number of tasks to remove

prgTasks
IVsTaskItem[]

[in] An array of IVsTaskList items to remove.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

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

Applies to