CallExternalMethodActivity.OnMethodInvoking(EventArgs) Method
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.
Provides a hook for derived classes to set ParameterBindings. This method is called just before the external method is run.
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)
Parameters
An EventArgs that contains the data for the MethodInvoking event.
Examples
The following example demonstrates an implementation of the OnMethodInvoking
method. This example is from the Correlated Local Service SDK sample, from the CreateTask.cs file. For more information, see Correlated Local Service Sample.
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