次の方法で共有


IVsTaskList2.RefreshOrAddTasks(UInt32, Int32, IVsTaskItem[]) Method

Definition

Refreshes all cached information for the given tasks.

public:
 int RefreshOrAddTasks(System::UInt32 vsProviderCookie, int nTasks, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsTaskItem ^> ^ prgTasks);
public:
 int RefreshOrAddTasks(unsigned int vsProviderCookie, int nTasks, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsTaskItem ^> ^ prgTasks);
int RefreshOrAddTasks(unsigned int vsProviderCookie, int nTasks, std::Array <Microsoft::VisualStudio::Shell::Interop::IVsTaskItem const &> const & prgTasks);
public int RefreshOrAddTasks (uint vsProviderCookie, int nTasks, Microsoft.VisualStudio.Shell.Interop.IVsTaskItem[] prgTasks);
abstract member RefreshOrAddTasks : uint32 * int * Microsoft.VisualStudio.Shell.Interop.IVsTaskItem[] -> int
Public Function RefreshOrAddTasks (vsProviderCookie As UInteger, nTasks As Integer, prgTasks As IVsTaskItem()) As Integer

Parameters

vsProviderCookie
UInt32

[in] The task provider ID given by the RegisterTaskProvider(IVsTaskProvider, UInt32) method.

nTasks
Int32

[in] The number of tasks to refresh.

prgTasks
IVsTaskItem[]

[in] An array of IVsTaskList items to refresh.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Tasks which do not yet exist in the list will be added.

COM Signature

From vsshell80.idl:

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

Applies to