CallExternalMethodActivity.InterfaceType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets an external method's declaring interface that has the ExternalDataExchangeAttribute.
public:
virtual property Type ^ InterfaceType { Type ^ get(); void set(Type ^ value); };
[System.Workflow.ComponentModel.Design.TypeFilterProvider(typeof(System.Workflow.Activities.ExternalDataExchangeInterfaceTypeFilterProvider))]
public virtual Type InterfaceType { get; set; }
[<System.Workflow.ComponentModel.Design.TypeFilterProvider(typeof(System.Workflow.Activities.ExternalDataExchangeInterfaceTypeFilterProvider))>]
member this.InterfaceType : Type with get, set
Public Overridable Property InterfaceType As Type
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.
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