ISharePointService.OnWorkflowActivated event

Raised when the workflow instance is first initiated.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

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.

When the ISharePointService raises this event, the event parameters are contained in the SPActivationEventArgs class.

See also

Reference

ISharePointService interface

ISharePointService members

Microsoft.SharePoint.Workflow namespace