CallExternalMethodActivity.OnMethodInvoking(EventArgs) Método

Definición

Proporciona un enlace para establecer ParameterBindings en las clases derivadas. La llamada a este método se produce antes de ejecutar el método externo.

protected:
 virtual void OnMethodInvoking(EventArgs ^ e);
protected virtual void OnMethodInvoking (EventArgs e);
abstract member OnMethodInvoking : EventArgs -> unit
override this.OnMethodInvoking : EventArgs -> unit
Protected Overridable Sub OnMethodInvoking (e As EventArgs)

Parámetros

e
EventArgs

EventArgs que contiene los datos para el evento MethodInvoking.

Ejemplos

En el siguiente ejemplo se muestra una implementación del método OnMethodInvoking. Este ejemplo pertenece al ejemplo de SDK de servicio local correlacionado del archivo CreateTask.cs. Para obtener más información, consulte Ejemplo de servicio local correlacionado.

protected override void OnMethodInvoking(EventArgs e)
{
    this.ParameterBindings["taskId"].Value = this.TaskId;
    this.ParameterBindings["assignee"].Value = this.Assignee;
    this.ParameterBindings["text"].Value = this.Text;
}
Protected Overrides Sub OnMethodInvoking(ByVal e As EventArgs)
    Me.ParameterBindings("taskId").Value = Me.TaskId
    Me.ParameterBindings("assignee").Value = Me.Assignee
    Me.ParameterBindings("text").Value = Me.Text
End Sub

Se aplica a

Consulte también