CodeActivity.ExecuteCode 事件

定义

CodeActivity 启动时发生。

public:
 event EventHandler ^ ExecuteCode;
public event EventHandler ExecuteCode;
member this.ExecuteCode : EventHandler 
Public Custom Event ExecuteCode As EventHandler 

事件类型

示例

下面的代码演示如何使用 ExecuteCode 事件。 此代码示例摘自 PurchaseOrder.cs 文件中的“补偿”SDK 示例。 有关详细信息,请参阅 使用补偿

this.ReceiverOrder.Name = "ReceiverOrder";
this.ReceiverOrder.ExecuteCode += new System.EventHandler(this.ReceiveOrderHandler);
Me.ReceiverOrder.Name = "ReceiverOrder"
AddHandler Me.ReceiverOrder.ExecuteCode, AddressOf Me.ReceiveOrderHandler

适用于

另请参阅