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