共用方式為


IVsTaskList2.RemoveTasks Method

Removes tasks from the tasklist.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣告
Function RemoveTasks ( _
    vsProviderCookie As UInteger, _
    nTasks As Integer, _
    prgTasks As IVsTaskItem() _
) As Integer
'用途
Dim instance As IVsTaskList2
Dim vsProviderCookie As UInteger
Dim nTasks As Integer
Dim prgTasks As IVsTaskItem()
Dim returnValue As Integer

returnValue = instance.RemoveTasks(vsProviderCookie, _
    nTasks, prgTasks)
int RemoveTasks(
    uint vsProviderCookie,
    int nTasks,
    IVsTaskItem[] prgTasks
)
int RemoveTasks(
    [InAttribute] unsigned int vsProviderCookie, 
    [InAttribute] int nTasks, 
    [InAttribute] array<IVsTaskItem^>^ prgTasks
)
abstract RemoveTasks : 
        vsProviderCookie:uint32 * 
        nTasks:int * 
        prgTasks:IVsTaskItem[] -> int 
function RemoveTasks(
    vsProviderCookie : uint, 
    nTasks : int, 
    prgTasks : IVsTaskItem[]
) : int

Parameters

  • nTasks
    Type: System.Int32
    [in] The number of tasks to remove

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 vsshell80.idl:

HRESULT RemoveTasks(
    [in] VSCOOKIE vsProviderCookie,
    [in] int nTasks,
    [in, size_is(nTasks)] IVsTaskItem* prgTasks[]
);

.NET Framework Security

See Also

Reference

IVsTaskList2 Interface

IVsTaskList2 Members

Microsoft.VisualStudio.Shell.Interop Namespace