ISharePointService.OnWorkflowActivated Event
Raised when the workflow instance is first initiated.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<CorrelationAliasAttribute("workflowId", "e.workflowId")> _
<CorrelationInitializerAttribute> _
Event OnWorkflowActivated As EventHandler(Of SPActivationEventArgs)
'Usage
Dim instance As ISharePointService
Dim handler As EventHandler(Of SPActivationEventArgs)
AddHandler instance.OnWorkflowActivated, handler
[CorrelationAliasAttribute("workflowId", "e.workflowId")]
[CorrelationInitializerAttribute]
event EventHandler<SPActivationEventArgs> OnWorkflowActivated
Remarks
Every workflow in Windows SharePoint Services must start with an OnWorkflowActivated workflow activity, which handles this event.
This method is used by the OnWorkflowActivated workflow activity in the Microsoft.SharePoint.WorkflowActions namespace.
For more information on workflow initiation, see Workflow Initiation in SharePoint Foundation.
When the ISharePointService raises this event, the event parameters are contained in the SPActivationEventArgs class.