อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


CallExternalMethodActivity.InterfaceType Property

Definition

Gets or sets an external method's declaring interface that has the ExternalDataExchangeAttribute.

C#
[System.Workflow.ComponentModel.Design.TypeFilterProvider(typeof(System.Workflow.Activities.ExternalDataExchangeInterfaceTypeFilterProvider))]
public virtual Type InterfaceType { get; set; }

Property Value

The external method's declaring interface that has the ExternalDataExchangeAttribute.

Attributes

Examples

The following code example shows how to set the InterfaceType property. The interface type must be attributed with the ExternalDataExchangeAttribute. This code example is part of the Listen SDK sample from the PurchaseOrderWorkflow.Designer.cs file. For more information, see Listen Sample.

C#
this.CreatePO.InterfaceType = typeof(IOrderService);
this.CreatePO.MethodName = "CreateOrder";
this.CreatePO.Name = "CreatePO";
this.CreatePO.MethodInvoking += new System.EventHandler(this.OnBeforeCreateOrder);

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also