Freigeben über


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)

Syntax

'Declaration
Function OnTaskListFinalRelease ( _
    pTaskList As IVsTaskList _
) As Integer
'Usage
Dim instance As IVsTaskProvider2
Dim pTaskList As IVsTaskList
Dim returnValue As Integer

returnValue = instance.OnTaskListFinalRelease(pTaskList)
int OnTaskListFinalRelease(
    IVsTaskList pTaskList
)
int OnTaskListFinalRelease(
    [InAttribute] IVsTaskList^ pTaskList
)
abstract OnTaskListFinalRelease : 
        pTaskList:IVsTaskList -> int 
function OnTaskListFinalRelease(
    pTaskList : IVsTaskList
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTaskProvider.OnTaskListFinalRelease(IVsTaskList)

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.

.NET Framework Security

See Also

Reference

IVsTaskProvider2 Interface

IVsTaskProvider2 Members

OnTaskListFinalRelease Overload

Microsoft.VisualStudio.Shell.Interop Namespace