CallExternalMethodActivity 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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 的新实例。 此代码还初始化 ListenActivity, EventDrivenActivity、HandleExternalEventActivity, DelayActivity 和 CodeActivity 类的新实例。 此代码示例摘自 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
用户定义的活动名,用于初始化活动名称属性。