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
'Dichiarazione
Function RegisterTaskProvider ( _
pProvider As IVsTaskProvider, _
<OutAttribute> ByRef pdwProviderCookie As UInteger _
) As Integer
'Utilizzo
Dim instance As IVsTaskList
Dim pProvider As IVsTaskProvider
Dim pdwProviderCookie As UInteger
Dim returnValue As Integer
returnValue = instance.RegisterTaskProvider(pProvider, _
pdwProviderCookie)
int RegisterTaskProvider(
IVsTaskProvider pProvider,
out uint pdwProviderCookie
)
int RegisterTaskProvider(
[InAttribute] IVsTaskProvider^ pProvider,
[OutAttribute] unsigned int% pdwProviderCookie
)
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.
Permissions
- 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.