Rediger

Del via


CallExternalMethodActivity Constructors

Definition

Initializes a new instance of the CallExternalMethodActivity class.

Overloads

CallExternalMethodActivity()

Initializes a new instance of the CallExternalMethodActivity class.

CallExternalMethodActivity(String)

Initializes a new instance of the CallExternalMethodActivity class using the name of the activity.

Examples

The following example shows how to create an instance of the CallExternalMethodActivity class. This example is from the PersistenceHost SDK sample, from the DocumentApprovalWorkflow.designer.cs file. For more information, see Persistence Host Sample.

this.SendDocument = new System.Workflow.Activities.CallExternalMethodActivity();
Me.SendDocument = New System.Workflow.Activities.CallExternalMethodActivity()

CallExternalMethodActivity()

Initializes a new instance of the CallExternalMethodActivity class.

public:
 CallExternalMethodActivity();
public CallExternalMethodActivity ();
Public Sub New ()

Examples

The following code example shows how initialize a new instance of the CallExternalMethodActivity. The code also initializes new instances of the ListenActivity, EventDrivenActivity, HandleExternalEventActivity, DelayActivity and CodeActivity classes. This code example is part of the Listen SDK sample from the PurchaseOrderWorkflow.Designer.cs file. For more information, see Listen Sample.

this.CanModifyActivities = true;
this.Timeout = new System.Workflow.Activities.CodeActivity();
this.Delay = new System.Workflow.Activities.DelayActivity();
this.RejectPO = new System.Workflow.Activities.HandleExternalEventActivity();
this.ApprovePO = new System.Workflow.Activities.HandleExternalEventActivity();
this.OnTimeoutEventDriven = new System.Workflow.Activities.EventDrivenActivity();
this.OnOrderRejectedEventDriven = new System.Workflow.Activities.EventDrivenActivity();
this.OnOrderApprovedEventDriven = new System.Workflow.Activities.EventDrivenActivity();
this.POStatusListen = new System.Workflow.Activities.ListenActivity();
this.CreatePO = new System.Workflow.Activities.CallExternalMethodActivity();
Me.CanModifyActivities = True
Me.CreatePO = New System.Workflow.Activities.CallExternalMethodActivity
Me.POStatusListen = New System.Workflow.Activities.ListenActivity
Me.OnOrderApprovedEventDriven = New System.Workflow.Activities.EventDrivenActivity
Me.OnOrderRejectedEventDriven = New System.Workflow.Activities.EventDrivenActivity
Me.OnTimeoutEventDriven = New System.Workflow.Activities.EventDrivenActivity
Me.ApprovePO = New System.Workflow.Activities.HandleExternalEventActivity
Me.RejectPO = New System.Workflow.Activities.HandleExternalEventActivity
Me.Delay = New System.Workflow.Activities.DelayActivity
Me.Timeout = New System.Workflow.Activities.CodeActivity

Applies to

CallExternalMethodActivity(String)

Initializes a new instance of the CallExternalMethodActivity class using the name of the activity.

public:
 CallExternalMethodActivity(System::String ^ name);
public CallExternalMethodActivity (string name);
new System.Workflow.Activities.CallExternalMethodActivity : string -> System.Workflow.Activities.CallExternalMethodActivity
Public Sub New (name As String)

Parameters

name
String

The user-defined name of the activity, used to initialize the activity name property.

Applies to