IVsTaskList.RegisterTaskProvider Method
Registers a task provider with the task list.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function RegisterTaskProvider ( _
pProvider As IVsTaskProvider, _
<OutAttribute> ByRef pdwProviderCookie As UInteger _
) As Integer
int RegisterTaskProvider(
IVsTaskProvider pProvider,
out uint pdwProviderCookie
)
int RegisterTaskProvider(
[InAttribute] IVsTaskProvider^ pProvider,
[OutAttribute] unsigned int% pdwProviderCookie
)
abstract RegisterTaskProvider :
pProvider:IVsTaskProvider *
pdwProviderCookie:uint32 byref -> int
function RegisterTaskProvider(
pProvider : IVsTaskProvider,
pdwProviderCookie : uint
) : int
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.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::RegisterTaskProvider(
[in] IVsTaskProvider *pProvider,
[out] VSCOOKIE *pdwProviderCookie
);
Any task provider that wants to make use of the task list must call this method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.