Skip to Content
Microsoft Windows Workflow Foundation 4.0 Cookbook
book

Microsoft Windows Workflow Foundation 4.0 Cookbook

by Andrew Zhu
September 2010
Intermediate to advanced content levelIntermediate to advanced
272 pages
5h 16m
English
Packt Publishing
Content preview from Microsoft Windows Workflow Foundation 4.0 Cookbook

Using ClearCollection<T> activity

In this task, we will use the ClearCollection<T> activity to clear the content of 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 CollectionPrinter activity in this task.

How to do it...

  1. Create a Workflow Console Application:

    Create a new Workflow Console Application and name it UsingClearCollectionActivity.

  2. Create a visual workflow:

    Perform the following steps in order to create a visual workflow:

    1. Open Workflow1.xaml, which is the workflow created by default. Click the Imports button and type in System.Collections.ObjectModel to import the System.Collections.ObjectModel namespace to this workflow.
    2. Drag a Sequence activity to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Essential Windows Workflow Foundation

Essential Windows Workflow Foundation

Dharma Shukla, Bob Schmidt

Publisher Resources

ISBN: 9781849680783Other