InvokeDelegate

The InvokeDelegate designer is used to create and configure an InvokeDelegate activity.

The InvokeDelegate activity

The InvokeDelegate calls a public delegate.

Use the InvokeDelegate Activity Designer

Access the InvokeDelegate activity designer in the Primitives category of the Toolbox. The InvokeDelegate activity designer can be dragged from the Toolbox and dropped on to the Workflow Designer surface where ever activities are usually placed, such as inside a Sequence. Dropping the activity designer creates an InvokeDelegate activity with a default DisplayName of InvokeDelegate. The DisplayName can be edited in the header of the InvokeDelegate activity designer or in the DisplayName box of the property grid.

The InvokeDelegate properties

The following table shows the InvokeDelegate properties and describes how they are used in the designer. These properties can be edited in property grid, and some can be edited on Workflow Designer surface.

Property Name Required Usage
DisplayName False The friendly name of the InvokeDelegate activity. The default value is InvokeDelegate.

Although the DisplayName is not strictly required, it's best to use one.
Delegate True The name of the ActivityDelegate to be called when the activity executes. This property can be edited on designer surface, and is mandatory.
DelegateArguments False The argument collection of the called delegate. The keys are the names of the parameter objects on the ActivityDelegate, and the values are the arguments whose expressions are evaluated and assigned to the corresponding parameter objects. To display the DelegateArguments dialog where you can set this property, click the ellipsis button in the DelegateArguments field of the property grid. Click the Create Argument field to add the arguments.

See also