共用方式為


CallExternalMethodActivity 建構函式

定義

初始化 CallExternalMethodActivity 類別的新執行個體。

多載

CallExternalMethodActivity()

初始化 CallExternalMethodActivity 類別的新執行個體。

CallExternalMethodActivity(String)

使用活動的名稱,初始化 CallExternalMethodActivity 類別的新執行個體。

範例

下列範例示範如何建立 CallExternalMethodActivity 類別的執行個體。 這個範例來自 DocumentApprovalWorkflow.designer.cs 檔案中的<PersistenceHost SDK>範例。 如需詳細資訊,請參閱 持續性主機範例

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

CallExternalMethodActivity()

初始化 CallExternalMethodActivity 類別的新執行個體。

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

範例

下列程式碼範例顯示如何初始化 CallExternalMethodActivity 的新執行個體。 程式碼也會初始化 ListenActivityEventDrivenActivityHandleExternalEventActivityDelayActivityCodeActivity 類別的新執行個體。 這個程式碼範例是 PurchaseOrderWorkflow.Designer.cs 檔案中<接聽 SDK>範例的一部分。 如需詳細資訊,請參閱 接聽範例

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

適用於

CallExternalMethodActivity(String)

使用活動的名稱,初始化 CallExternalMethodActivity 類別的新執行個體。

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)

參數

name
String

活動的使用者定義名稱,用於初始化活動名稱屬性。

適用於