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
int OnTaskListFinalRelease(
IVsTaskList pTaskList
)
int OnTaskListFinalRelease(
[InAttribute] IVsTaskList^ pTaskList
)
abstract OnTaskListFinalRelease :
pTaskList:IVsTaskList -> int
function OnTaskListFinalRelease(
pTaskList : IVsTaskList
) : int
Parameters
pTaskList
Type: Microsoft.VisualStudio.Shell.Interop.IVsTaskList[in] Pointer to the IVsTaskList interface that the task provider is registered to.
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.