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

Chapter 4. Manipulating Collections

In this chapter, we will cover:

  • Printing collection items
  • Using AddToCollection<T> activity
  • Using ClearCollection<T> activity
  • Using RemoveFromCollection<T> activity
  • Using ExistsInCollection<T> activity

Introduction

Imagine that we have defined a List<T> type Variable in workflow, and we want to add, remove, and update items of the collection object. By default, WF4 provides us with four activities—AddToCollection<T>, ClearCollection<T>, RemoveFromCollection<T>, and ExistsInCollection<T>—using which we can manipulate collection as we wish.

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