CallExternalMethodActivity.MethodName 属性

定义

获取或设置要对向 ExternalDataExchangeService 注册的本地服务调用的方法的名称。

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

属性值

ExternalDataExchangeService 接口的方法名。

属性

示例

下面的代码示例演示如何使用 MethodName 属性设置外部方法的方法名。 此代码示例摘自 PurchaseOrderWorkflow.Designer.cs 文件中的“侦听”SDK 示例。 有关详细信息,请参阅 侦听示例

this.CreatePO.InterfaceType = typeof(IOrderService);
this.CreatePO.MethodName = "CreateOrder";
this.CreatePO.Name = "CreatePO";
this.CreatePO.MethodInvoking += new System.EventHandler(this.OnBeforeCreateOrder);
Me.CreatePO.InterfaceType = GetType(IOrderService)
Me.CreatePO.MethodName = "CreateOrder"
Me.CreatePO.Name = "CreatePO"
AddHandler Me.CreatePO.MethodInvoking, AddressOf Me.OnBeforeCreateOrder

适用于

另请参阅