Notifies the task provider that a user has deleted a task.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
'Declaration Function OnDeleteTask As Integer
abstract OnDeleteTask : unit -> int
function OnDeleteTask() : int
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
- 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.