Share via


CallExternalMethodActivity.InterfaceType Proprietà

Definizione

Ottiene o imposta l'interfaccia di dichiarazione di un metodo esterno che dispone dell'oggetto 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

Valore della proprietà

Interfaccia di dichiarazione del metodo esterno che dispone dell'oggetto ExternalDataExchangeAttribute.

Attributi

Esempio

Nell'esempio di codice riportato di seguito viene illustrato come impostare la proprietà InterfaceType. Il tipo di interfaccia deve essere attribuito tramite ExternalDataExchangeAttribute. Questo esempio di codice è parte dell'esempio SDK Listen nel file PurchaseOrderWorkflow.Designer.cs. Per altre informazioni, vedere Esempio di ascolto.

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

Si applica a

Vedi anche