IVsTaskProvider2::OnTaskListFinalRelease Method (IVsTaskList^)

 

Notifies the client to unregister the task provider from the task list if it has not been unregistered by the time the task list is closing.

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

int OnTaskListFinalRelease(
	IVsTaskList^ pTaskList
)

Parameters

pTaskList
Type: Microsoft.VisualStudio.Shell.Interop::IVsTaskList^

[in] Pointer to the IVsTaskList interface that the task provider is registered to.

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 IVsTaskProvider2::OnTaskListFinalRelease(
   [in] IVsTaskList *pTaskList
);

This method will be called if the task provider is still registered with the task list when the task list is closing and will no longer be able to be reached by the IServiceProvider::QueryService method. It allows the task provider to properly unregister itself from the task list before the task list is fully closed.

Return to top
Show: