Task.IVsTaskItem.OnDeleteTask Method

Definition

Raised when a task has been deleted.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsTaskItem.OnDeleteTask() = Microsoft::VisualStudio::Shell::Interop::IVsTaskItem::OnDeleteTask;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsTaskItem.OnDeleteTask() = Microsoft::VisualStudio::Shell::Interop::IVsTaskItem::OnDeleteTask;
int Microsoft.VisualStudio.Shell.Interop.IVsTaskItem.OnDeleteTask();
int IVsTaskItem.OnDeleteTask ();
abstract member Microsoft.VisualStudio.Shell.Interop.IVsTaskItem.OnDeleteTask : unit -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsTaskItem.OnDeleteTask : unit -> int
Function OnDeleteTask () As Integer Implements IVsTaskItem.OnDeleteTask

Returns

S_OK.

Implements

Remarks

This method is called only 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

Applies to