ListenActivity Class
Makes the workflow wait for any one of several possible events before the activity proceeds. This class cannot be inherited.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
The ListenActivity is a CompositeActivity, which means the ListenActivity can contain other activities. The ListenActivity can only contain EventDrivenActivity activities and must have a minimum of two child activities.
The ListenActivity can contain many branches and each branch is waiting for a particular event to occur before running. Each branch is event driven and the event that occurs runs the corresponding branch first. All other branches cancel and stop listening for events.
The ListenActivity cannot be used in state machine workflows.
System.Workflow.ComponentModel.DependencyObject
System.Workflow.ComponentModel.Activity
System.Workflow.ComponentModel.CompositeActivity
System.Workflow.Activities.ListenActivity
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.