HandleExternalEventActivity::OnInvoked Method (EventArgs^)
.NET Framework (current version)
Called just after the external event is received to allow derived classes to process the inbound EventArgs before the activity closes.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
The most common use of the OnInvoked method in derived classes is to extract members from the received EventArgs to set the values of the derived-classed activity's public properties.
The following example shows an implementation of the OnInvoked method. This example is from the Correlated Local Service SDK sample, from the TaskCompleted.cs file. For more information, seeCorrelated Local Service Sample.
.NET Framework
Available since 3.0
Available since 3.0
HandleExternalEventActivity Class
System.Workflow.Activities Namespace
Using the HandleExternalEvent Activity
Show: