Share via


IVsTaskList.UnregisterTaskProvider(UInt32) Method

Definition

Unregisters the specified task provider from the task list.

public:
 int UnregisterTaskProvider(System::UInt32 dwProviderCookie);
public:
 int UnregisterTaskProvider(unsigned int dwProviderCookie);
int UnregisterTaskProvider(unsigned int dwProviderCookie);
public int UnregisterTaskProvider (uint dwProviderCookie);
abstract member UnregisterTaskProvider : uint32 -> int
Public Function UnregisterTaskProvider (dwProviderCookie As UInteger) As Integer

Parameters

dwProviderCookie
UInt32

[in] The task provider ID given by the RegisterTaskProvider(IVsTaskProvider, UInt32) method.

Returns

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.

Applies to