CallExternalMethodActivity.MethodInvoking Event

Definition

Occurs before invoking the method.

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

Event Type

Examples

The following code example shows how to use the MethodInvoking event to set the method to call before invoking the external method. This code example is part of the Listen SDK sample from the PurchaseOrderWorkflow.Designer.cs file. For more information, see Listen Sample.

this.CreatePO.InterfaceType = typeof(IOrderService);
this.CreatePO.MethodName = "CreateOrder";
this.CreatePO.Name = "CreatePO";
this.CreatePO.MethodInvoking += new System.EventHandler(this.OnBeforeCreateOrder);
Me.CreatePO.InterfaceType = GetType(IOrderService)
Me.CreatePO.MethodName = "CreateOrder"
Me.CreatePO.Name = "CreatePO"
AddHandler Me.CreatePO.MethodInvoking, AddressOf Me.OnBeforeCreateOrder

Applies to

See also