Using RemoveFromCollection<T> activity
In this task, we will use the RemoveFromCollection<T>
activity to remove an item from a collection object.
Getting ready
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.
How to do it...
- Create a Console Workflow Application:
Create a new Workflow Console Application, and name it
UsingRemoveFromCollectionActivity
. - Create a workflow:
We need to perform the following tasks to create a workflow:
- Open
Workflow1.xaml
, which is the workflow created by default. Click the Imports button and type inSystem.Collections.ObjectModel
to import theSystem.Collections.ObjectModel
namespace to this workflow. - Drag a Sequence activity ...
- Open
Get Microsoft Windows Workflow Foundation 4.0 Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.