CMSParallelForEachTSource Method (ICollectionTSource, ActionTSource, ParallelOptions) |
Executes a for each operation on an System.Collections.IEnumerable{TSource} in which iterations may run in parallel. Wraps the operation into CMSThread to ensure proper context.
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntax public static ParallelLoopResult ForEach<TSource>(
ICollection<TSource> source,
Action<TSource> body,
ParallelOptions options
)
Parameters
- source
- Type: System.Collections.GenericICollectionTSource
Parallel sources - body
- Type: SystemActionTSource
Executing body - options
- Type: System.Threading.TasksParallelOptions
Options for executing
Type Parameters
- TSource
Return Value
Type:
ParallelLoopResultSee Also