What should you do to execute a CodeActivity activity for each Customer object contained in ListCustomers?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The workflow contains a collection of Customer objects named ListCustomers. You need to execute a CodeActivity activity for each Customer object contained in ListCustomers. What should you do?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The workflow contains a collection of Customer objects named ListCustomers. You need to execute a CodeActivity activity for each Customer object contained in ListCustomers. What should you do?

A.
Add a nested CodeActivity activity to a WhileActivity activity. Set the Condition property of the WhileActivity activity to ListCustomers.Count == 0.

B.
Add a CodeActivity activity to a ReplicatorActivity activity. Bind the ListCustomers collection to the InitialChildData property of the ReplicatorActivity activity.

C.
Add a CodeActivity activity to a ReplicatorActivity activity. Set the expression of the UntilCondition property of the ReplicatorActivity activity to “ListCustomers.Count == 0”.

D.
Add a nested CodeActivity activity to the ConditionedActivityGroup activity. Set the expression of the UntilCondition property of the ConditionedActivityGroup activity to “ListCustomers.Count == 0”.



Leave a Reply 0

Your email address will not be published. Required fields are marked *