ImpersonationSequenceActivity.IActivityEventListener<ActivityExecutionStatusChangedEventArgs>.OnEvent Method
Defines the process procedure when the subscribe-to event occurs.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Private Sub OnEvent ( _
sender As Object, _
e As ActivityExecutionStatusChangedEventArgs _
) Implements IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs).OnEvent
'Usage
Dim instance As ImpersonationSequenceActivity
Dim sender As Object
Dim e As ActivityExecutionStatusChangedEventArgs
CType(instance, IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs)).OnEvent(sender, _
e)
void IActivityEventListener<ActivityExecutionStatusChangedEventArgs>.OnEvent(
Object sender,
ActivityExecutionStatusChangedEventArgs e
)
Parameters
sender
Type: System.ObjectThe source of the event.
e
Type: System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgsThe data for the event.
Implements
IActivityEventListener<T>.OnEvent(Object, T)
Remarks
This member is an explicit interface member implementation. It can be used only when the ImpersonationSequenceActivity instance is cast to an IActivityEventListener interface.
This implementation defines the process procedure for the execution status of the sender.
This method throws an ArgumentNullException if either argument is null .
See Also
Reference
ImpersonationSequenceActivity Class