CodeActivity.ExecuteCode Event (System.Workflow.Activities)

Switch View :
ScriptFree
.NET Framework Class Library
CodeActivity.ExecuteCode Event

Occurs when the CodeActivity starts.

Namespace:  System.Workflow.Activities
Assembly:  System.Workflow.Activities (in System.Workflow.Activities.dll)
Syntax

Visual Basic
Public Event ExecuteCode As EventHandler
C#
public event EventHandler ExecuteCode
Visual C++
public:
 event EventHandler^ ExecuteCode {
	void add (EventHandler^ value);
	void remove (EventHandler^ value);
}
F#
member ExecuteCode : IEvent<EventHandler,
    EventArgs>

Examples

The following code demonstrates how to use the ExecuteCode event. This code example is part of the Compensation SDK sample from the PurchaseOrder.cs file. For more information, see Using Compensation.

Visual Basic

Me.ReceiverOrder.Name = "ReceiverOrder"
AddHandler Me.ReceiverOrder.ExecuteCode, AddressOf Me.ReceiveOrderHandler


C#

this.ReceiverOrder.Name = "ReceiverOrder";
this.ReceiverOrder.ExecuteCode += new System.EventHandler(this.ReceiveOrderHandler);


Version Information

.NET Framework

Supported in: 4, 3.5, 3.0
.NET Framework Security

Platforms

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also

Reference

Other Resources