Assign Activity Designer

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

The Assign Activity

The Assign activity assigns a value to a variable or argument.

Using the Assign Activity Designer

The Assign activity designer can be found in the Primitives category of the Toolbox, which is accessed by clicking the Toolbox tab (Alternatively, select Toolbox from the View menu or CTRL+ALT+X.)

The Assign 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. This creates an Assign activity with a default DisplayName of Assign. The DisplayName can be edited in the header of the Assign activity designer or in the DisplayName box of the property grid.

The Assign Properties

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

Property Name Required Usage

DisplayName

False

The friendly name of the Assign activity. The default is Assign. Although the DisplayName value is not strictly required, it is a best practice to use one.

To

True

The variable or argument to which the Value is assigned. This must be a valid Visual Basic identifier. To set the property, type a Visual Basic expression in the To box on the Assign activity designer or in the property grid.

Value

True

The value that is assigned to the variable. To set the Value, type a Visual Basic expression in the Value box on the Assign activity designer or in the property grid.

See Also

Concepts

Delay Activity Designer
InvokeMethod Activity Designer
WriteLine Activity Designer

Other Resources

Primitives Activity Designers