Share via


WriteLine Activity Designer

The WriteLine activity designer is used to create and configure a WriteLine activity.

The WriteLine Activity

The Writeline activity writes text to a specified TextWriter object. If no TextWriter is specified, Writeline writes the text to the console.

Using the WriteLine Activity Designer

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

The WriteLine activity designer can be dragged from the Toolbox and dropped on to the Workflow Designer surface wherever activities are usually placed, such as inside a Sequence. This creates a WriteLine activity with a default DisplayName of WriteLine. The DisplayName can be edited in the header of the WriteLine activity designer or in the DisplayName box of the property grid.

The WriteLine Properties

The following table shows the WriteLine 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 Designerdesigner surface.

Property Name Required Usage

DisplayName

False

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

Text

False

The text to write. To set the property, type a Visual Basic expression in the Text box on the WriteLine activity designer or in the property grid.

TextWriter

False

The TextWriter to which the WriteLine writes the Text. The default is the console.

See Also

Concepts

Assign Activity Designer
Delay Activity Designer
InvokeMethod Activity Designer

Other Resources

Primitives Activity Designers