次の方法で共有


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

'宣言
Function RegisterTaskProvider ( _
    pProvider As IVsTaskProvider, _
    <OutAttribute> ByRef pdwProviderCookie As UInteger _
) As Integer
'使用
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

  • 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

See Also

Reference

IVsTaskList Interface

IVsTaskList Members

Microsoft.VisualStudio.Shell.Interop Namespace