WriteLine Activity Designer

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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

Access the WriteLine activity designer in the Primitives category of the Toolbox. 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 Designer 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