Task.IVsTaskItem.OnDeleteTask Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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