Makes the workflow wait for any one of several possible events before the activity proceeds. This class cannot be inherited.
<ToolboxBitmapAttribute(GetType(ListenActivity), "Resources.Listen.png")> _ Public NotInheritable Class ListenActivity _ Inherits CompositeActivity _ Implements IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs)
[ToolboxBitmapAttribute(typeof(ListenActivity), "Resources.Listen.png")] public sealed class ListenActivity : CompositeActivity, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
[ToolboxBitmapAttribute(typeof(ListenActivity), L"Resources.Listen.png")] public ref class ListenActivity sealed : public CompositeActivity, IActivityEventListener<ActivityExecutionStatusChangedEventArgs^>
[<Sealed>] [<ToolboxBitmapAttribute(typeof(ListenActivity), "Resources.Listen.png")>] type ListenActivity = class inherit CompositeActivity interface IActivityEventListener<ActivityExecutionStatusChangedEventArgs> end
The ListenActivity type exposes the following members.
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2