Click or drag to resize
CMSParallelForEachTSource Method (IListTSource, 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.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax
C#
public static ParallelLoopResult ForEach<TSource>(
	IList<TSource> source,
	Action<TSource> body,
	ParallelOptions options
)

Parameters

source
Type: System.Collections.GenericIListTSource
Parallel sources
body
Type: SystemActionTSource
Executing body
options
Type: System.Threading.TasksParallelOptions
Options for executing

Type Parameters

TSource

Return Value

Type: ParallelLoopResult
See Also