Partilhar via


IVsTaskItem.OnDeleteTask Method

Definition

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

public:
 int OnDeleteTask();
public:
 int OnDeleteTask();
int OnDeleteTask();
public int OnDeleteTask ();
abstract member OnDeleteTask : unit -> int
Public Function OnDeleteTask () As Integer

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Applies to