共用方式為


HandleExternalEventActivity.Invoked 事件

定義

發生於接收外部事件時。

public:
 event EventHandler<System::Workflow::Activities::ExternalDataEventArgs ^> ^ Invoked;
public event EventHandler<System.Workflow.Activities.ExternalDataEventArgs> Invoked;
member this.Invoked : EventHandler<System.Workflow.Activities.ExternalDataEventArgs> 
Public Custom Event Invoked As EventHandler(Of ExternalDataEventArgs) 

事件類型

範例

下列程式碼範例示範如何建立與設定 HandleExternalEventActivity 類別的值。 這個程式碼範例是 DocumentApprovalWorkflow.cs 檔案中<RaiseEventToLoadWorkflow SDK>範例的一部分。 如需詳細資訊,請參閱 引發事件以載入工作流程

this.Car.Name = "Car";
this.Car.ExecuteCode += new System.EventHandler(this.Car_ExecuteCode);
this.Car.SetValue(System.Workflow.Activities.ConditionedActivityGroup.WhenConditionProperty, codecondition1);
codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.AirlineCondition);
Me.Car.Name = "Car"
AddHandler Car.ExecuteCode, AddressOf Me.Car_ExecuteCode
Me.Car.SetValue(System.Workflow.Activities.ConditionedActivityGroup.WhenConditionProperty, codecondition1)
AddHandler codecondition2.Condition, AddressOf Me.AirlineCondition

適用於

另請參閱