Condividi tramite


IVsTaskProvider2.OnTaskListFinalRelease(IVsTaskList) Method

Definition

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.

public:
 int OnTaskListFinalRelease(Microsoft::VisualStudio::Shell::Interop::IVsTaskList ^ pTaskList);
public:
 int OnTaskListFinalRelease(Microsoft::VisualStudio::Shell::Interop::IVsTaskList ^ pTaskList);
int OnTaskListFinalRelease(Microsoft::VisualStudio::Shell::Interop::IVsTaskList const & pTaskList);
public int OnTaskListFinalRelease (Microsoft.VisualStudio.Shell.Interop.IVsTaskList pTaskList);
abstract member OnTaskListFinalRelease : Microsoft.VisualStudio.Shell.Interop.IVsTaskList -> int
Public Function OnTaskListFinalRelease (pTaskList As IVsTaskList) As Integer

Parameters

pTaskList
IVsTaskList

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

Returns

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

Implements

Remarks

COM Signature

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.

Applies to