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

适用于

另请参阅