Click or drag to resize
CMSParallelForEachTSource Method (TSource, 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: 10.0.0
Syntax
C#
public static ParallelLoopResult ForEach<TSource>(
	TSource[] source,
	Action<TSource> body,
	ParallelOptions options
)

Parameters

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

Type Parameters

TSource

Return Value

Type: ParallelLoopResult
See Also