IVsTaskList.UnregisterTaskProvider Method

Unregisters the specified task provider from the task list.

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

Syntax

'宣言
Function UnregisterTaskProvider ( _
    dwProviderCookie As UInteger _
) As Integer
'使用
Dim instance As IVsTaskList
Dim dwProviderCookie As UInteger
Dim returnValue As Integer

returnValue = instance.UnregisterTaskProvider(dwProviderCookie)
int UnregisterTaskProvider(
    uint dwProviderCookie
)
int UnregisterTaskProvider(
    [InAttribute] unsigned int dwProviderCookie
)
function UnregisterTaskProvider(
    dwProviderCookie : uint
) : 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 IVsTaskList::UnregisterTaskProvider(
   [in] VSCOOKIE dwProviderCookie
);

Task providers should unregister from the task list when it is likely that they will no longer add tasks to the task list.

Permissions

See Also

Reference

IVsTaskList Interface

IVsTaskList Members

Microsoft.VisualStudio.Shell.Interop Namespace