Freigeben über


IVsTaskProvider.OnTaskListFinalRelease Method

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 IVsTaskProvider
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.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskProvider::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 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

IVsTaskProvider Interface

IVsTaskProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace