Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Initialize Collection

This activity initializes the specified collection (extended to any enumerable IEnumerable arguments/variables , e.g. List<T> , String[] , Collection<T>). This activity should be used prior to activities that add items to a specified collection, e.g. system activity AddToCollection

...

The Initialize Collection activity parameters can be provided by manual inserted values or via IN arguments or variables:

Image RemovedImage Added

Parameters:

  • Items Collection (text box editor type) (type: selected collection type): specify the collection to be initialized. E.g. UsersArray is an IN argument of type String[] (array of strings). The type of the collection is selected when the activity is dragged from Activity tree panel to Designer panel.
  • Number Of Items (text box editor type) (type: Int32): enter the length of the array (the number of items) to be initialized. Note: this parameter is only needed if type is array, like in the example mentioned above.