IVsTaskList.RegisterTaskProvider(IVsTaskProvider, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.