IVsTaskList2.RefreshOrAddTasks Method
Refreshes all cached information for the given tasks.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function RefreshOrAddTasks ( _
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.RefreshOrAddTasks(vsProviderCookie, _
nTasks, prgTasks)
int RefreshOrAddTasks(
uint vsProviderCookie,
int nTasks,
IVsTaskItem[] prgTasks
)
int RefreshOrAddTasks(
[InAttribute] unsigned int vsProviderCookie,
[InAttribute] int nTasks,
[InAttribute] array<IVsTaskItem^>^ prgTasks
)
abstract RefreshOrAddTasks :
vsProviderCookie:uint32 *
nTasks:int *
prgTasks:IVsTaskItem[] -> int
function RefreshOrAddTasks(
vsProviderCookie : uint,
nTasks : int,
prgTasks : IVsTaskItem[]
) : int
Parameters
- vsProviderCookie
Type: System.UInt32
[in] The task provider ID given by the RegisterTaskProvider method.
- nTasks
Type: System.Int32
[in] The number of tasks to refresh.
- prgTasks
Type: array<Microsoft.VisualStudio.Shell.Interop.IVsTaskItem[]
[in] An array of IVsTaskList items to refresh.
Return Value
Type: System.Int32
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[]
);
.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.