IVsTaskList.RegisterTaskProvider(IVsTaskProvider, UInt32) Method

Definition

Registers a task provider with the task list.

public:
 int RegisterTaskProvider(Microsoft::VisualStudio::Shell::Interop::IVsTaskProvider ^ pProvider, [Runtime::InteropServices::Out] System::UInt32 % pdwProviderCookie);
int RegisterTaskProvider(Microsoft::VisualStudio::Shell::Interop::IVsTaskProvider const & pProvider, [Runtime::InteropServices::Out] unsigned int & pdwProviderCookie);
public int RegisterTaskProvider (Microsoft.VisualStudio.Shell.Interop.IVsTaskProvider pProvider, out uint pdwProviderCookie);
abstract member RegisterTaskProvider : Microsoft.VisualStudio.Shell.Interop.IVsTaskProvider * uint32 -> int
Public Function RegisterTaskProvider (pProvider As IVsTaskProvider, ByRef pdwProviderCookie As UInteger) As Integer

Parameters

pProvider
IVsTaskProvider

[in] Pointer to the IVsTaskProvider interface.

pdwProviderCookie
UInt32

[out] Pointer to an ID for the task provider specified by pProvider.

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::RegisterTaskProvider(  
   [in] IVsTaskProvider *pProvider,  
   [out] VSCOOKIE *pdwProviderCookie  
);  

Any task provider that wants to make use of the task list must call this method.

Applies to