共用方式為


HandleExternalEventActivity.EventName 屬性

定義

取得所引發事件的名稱。 這個屬性必須先設定,本機通訊才會發生。

public:
 virtual property System::String ^ EventName { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.PropertyValueProviderTypeConverter))]
public virtual string EventName { get; set; }
[System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.Common.PropertyValueProviderTypeConverter))]
public virtual string EventName { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.PropertyValueProviderTypeConverter))>]
member this.EventName : string with get, set
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.Common.PropertyValueProviderTypeConverter))>]
member this.EventName : string with get, set
Public Overridable Property EventName As String

屬性值

所引發事件的名稱。

屬性

範例

下列程式碼範例示範如何建立與設定 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

適用於

另請參閱