Freigeben über


Task.IVsTaskItem.OnDeleteTask Method

Raised when a task has been deleted.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Declaration
Private Function OnDeleteTask As Integer
    Implements IVsTaskItem.OnDeleteTask
'Usage
Dim instance As Task
Dim returnValue As Integer

returnValue = CType(instance, IVsTaskItem).OnDeleteTask()
int IVsTaskItem.OnDeleteTask()
private:
virtual int OnDeleteTask() sealed = IVsTaskItem::OnDeleteTask
private abstract OnDeleteTask : unit -> int 
private override OnDeleteTask : unit -> int 
JScript does not support explicit interface implementations.

Return Value

Type: System.Int32
S_OK().

Implements

IVsTaskItem.OnDeleteTask()

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

.NET Framework Security

See Also

Reference

Task Class

Task Members

Microsoft.VisualStudio.Shell Namespace