IVsTaskList2::RefreshOrAddTasks Method (UInt32, Int32, array<IVsTaskItem^>^)
Visual Studio 2015
Refreshes all cached information for the given tasks.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int RefreshOrAddTasks( 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 refresh.
- prgTasks
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::IVsTaskItem^>^
[in] An array of IVsTaskList items to refresh.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Tasks which do not yet exist in the list will be added.
From vsshell80.idl:
HRESULT RefreshOrAddTasks(
[in] VSCOOKIE vsProviderCookie,
[in] int nTasks,
[in, size_is(nTasks)] IVsTaskItem* prgTasks[]
);
Show: