IVsTaskList::RefreshTasks Method (UInt32)

 

Informs the task list that a task provider has new or updated tasks.

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

int RefreshTasks(
	unsigned int dwProviderCookie
)

Parameters

dwProviderCookie
Type: System::UInt32

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

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsTaskList::RefreshTasks(
   [in] VSCOOKIE dwProviderCookie
);

A task provider should call this method to inform the task list that it has updated a current task or has new tasks to add to the task list. It is not necessary to call this method when a user deletes a task from the task list. However, this method must be called if the task is deleted any other way (for example, if the user deletes a line containing a shortcut task). The task list will perform a sort, based upon the current sort, after this method is called.

Return to top
Show: