ForEach<T>::Values Property
.NET Framework (current version)
The activity’s collection of inputs for the execution of the Body activity action.
Assembly: System.Activities (in System.Activities.dll)
public: [RequiredArgumentAttribute] property InArgument<IEnumerable<T>^>^ Values { InArgument<IEnumerable<T>^>^ get(); void set(InArgument<IEnumerable<T>^>^ value); }
The following code sample demonstrates setting the Values property of a ForEach<T> activity. This example is from the DynamicActivity Creation sample.
new ForEach<int> { Values = new ArgumentValue<IEnumerable<int>> { ArgumentName = "Numbers" }, Body = new ActivityAction<int> { Argument = iterationVariable, Handler = new Assign<int> { To = accumulator, Value = new InArgument<int>(env => iterationVariable.Get(env) + accumulator.Get(env)) } } },
.NET Framework
Available since 4.0
Available since 4.0
Show: