In this task, we will use the
RemoveFromCollection<T> activity to remove an item from a collection object.
We need to make sure we have finished the task of Printing collection items for us to be able to use the
CollectionPrinterActivity in this task.
Create a new Workflow Console Application, and name it
We need to perform the following tasks to create a 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 panel. Next, drag
CollectionPrinteractivity to the designer panel two times. Now drag a
RemoveFromCollectionactivity between the two
CollectionPinteractivities—the type is
String. Add a new