HandleExternalEventActivity Class
Defines a workflow communication activity that is used to handle an event that is raised by a local service.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
'Declaration <ActivityValidatorAttribute(GetType(HandleExternalEventActivityValidator))> _ Public Class HandleExternalEventActivity _ Inherits Activity _ Implements IEventActivity, IActivityEventListener(Of QueueEventArgs), _ IDynamicPropertyTypeProvider 'Usage Dim instance As HandleExternalEventActivity
A local service is a class that implements a local service interface (an interface that is marked with ExternalDataExchangeAttribute) and is added to the ExternalDataExchangeService.
The HandleExternalEventActivity receives data when the ExternalDataExchangeService service raises an event with event data derived from ExternalDataEventArgs.
The HandleExternalEventActivity is a blocking activity.
Classes that derive from HandleExternalEventActivity should not implement the IActivityEventListener(Of T) interface because the derived class does not execute correctly.
The following code example shows how to create and set values for the HandleExternalEventActivity class. This code example is part of the RaiseEventToLoadWorkflow SDK sample from the DocumentApprovalWorkflow.cs file. For more information, see Raise Event To Load Workflow.
System.Workflow.ComponentModel.DependencyObject
System.Workflow.ComponentModel.Activity
System.Workflow.Activities.HandleExternalEventActivity
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.