Compartir a través de


IVsTaskItem2.OnDeleteTask Method

Notifies the task provider that a user has deleted a task.

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

Syntax

'Declaración
Function OnDeleteTask As Integer
'Uso
Dim instance As IVsTaskItem2
Dim returnValue As Integer

returnValue = instance.OnDeleteTask()
int OnDeleteTask()
int OnDeleteTask()
abstract OnDeleteTask : unit -> int 
function OnDeleteTask() : int

Return Value

Type: System.Int32

Implements

IVsTaskItem.OnDeleteTask()

Remarks

This method is only called if the CanDelete method is set to true. When a task is deleted, you must remove the task from your internal list, but it is not necessary to call the RefreshTasks method on the task list.

.NET Framework Security

See Also

Reference

IVsTaskItem2 Interface

IVsTaskItem2 Members

OnDeleteTask Overload

Microsoft.VisualStudio.Shell.Interop Namespace