O'Reilly logo

Microsoft Windows Workflow Foundation 4.0 Cookbook by Andrew Zhu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required