IVsTaskList::RegisterTaskProvider Method (IVsTaskProvider^, UInt32)
Visual Studio 2015
Registers a task provider with the task list.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int RegisterTaskProvider( IVsTaskProvider^ pProvider, [OutAttribute] unsigned int% pdwProviderCookie )
Parameters
- pProvider
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskProvider^
[in] Pointer to the IVsTaskProvider interface.
- pdwProviderCookie
-
Type:
System::UInt32
[out] Pointer to an ID for the task provider specified by pProvider.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: