ITaskService.OnTaskDeleted Event
Raised when the a workflow task is deleted.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<CorrelationAliasAttribute("taskId", "e.taskId")> _
Event OnTaskDeleted As EventHandler(Of SPTaskServiceEventArgs)
'Usage
Dim instance As ITaskService
Dim handler As EventHandler(Of SPTaskServiceEventArgs)
AddHandler instance.OnTaskDeleted, handler
[CorrelationAliasAttribute("taskId", "e.taskId")]
event EventHandler<SPTaskServiceEventArgs> OnTaskDeleted
Remarks
When the ITaskService service raises an event, the event parameters are contained in the SPTaskServiceEventArgs class.
You can add an OnTaskDeleted workflow activity to your workflow to respond to this event.