In this task, we will use the
ClearCollection<T> activity to clear the content of a collection object.
Create a new Workflow Console Application and name it
Perform the following steps in order to create a visual workflow:
Workflow1.xaml, which is the workflow created by default. Click the Imports button and type in
System.Collections.ObjectModelto import the
System.Collections.ObjectModelnamespace to this workflow.
Drag a Sequence activity to the workflow designer and then drag a
CollectionPrinteractivity to the designer panel two times to add two
CollectionPrinter<String>activities to the designer panel. Next, drag a
ClearCollectionactivity between the two