1 <?xml version="1.0" encoding="utf-8"?><doc>
3 <name>System.Threading.Tasks.Parallel</name>
6 <member name="T:System.Threading.Tasks.ParallelOptions">
7 <summary>Stores options that configure the operation of methods on the <see cref="T:System.Threading.Tasks.Parallel"></see> class.</summary>
9 <member name="M:System.Threading.Tasks.ParallelOptions.#ctor">
10 <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.ParallelOptions"></see> class.</summary>
12 <member name="P:System.Threading.Tasks.ParallelOptions.CancellationToken">
13 <summary>Gets or sets the <see cref="T:System.Threading.CancellationToken"></see> associated with this <see cref="T:System.Threading.Tasks.ParallelOptions"></see> instance.</summary>
14 <returns>The token that is associated with this instance.</returns>
16 <member name="P:System.Threading.Tasks.ParallelOptions.MaxDegreeOfParallelism">
17 <summary>Gets or sets the maximum number of concurrent tasks enabled by this <see cref="T:System.Threading.Tasks.ParallelOptions"></see> instance.</summary>
18 <returns>An integer that represents the maximum degree of parallelism.</returns>
19 <exception cref="T:System.ArgumentOutOfRangeException">The property is being set to zero or to a value that is less than -1.</exception>
21 <member name="P:System.Threading.Tasks.ParallelOptions.TaskScheduler">
22 <summary>Gets or sets the <see cref="T:System.Threading.Tasks.TaskScheduler"></see> associated with this <see cref="T:System.Threading.Tasks.ParallelOptions"></see> instance. Setting this property to null indicates that the current scheduler should be used.</summary>
23 <returns>The task scheduler that is associated with this instance.</returns>
25 <member name="T:System.Threading.Tasks.ParallelLoopState">
26 <summary>Enables iterations of parallel loops to interact with other iterations. An instance of this class is provided by the <see cref="T:System.Threading.Tasks.Parallel"></see> class to each loop; you can not create instances in your code.</summary>
28 <member name="M:System.Threading.Tasks.ParallelLoopState.Break">
29 <summary>Communicates that the <see cref="T:System.Threading.Tasks.Parallel"></see> loop should cease execution of iterations beyond the current iteration at the system&#39;s earliest convenience.</summary>
30 <exception cref="T:System.InvalidOperationException">The <see cref="System.Threading.Tasks.ParallelLoopState.Stop"></see> method was previously called. <see cref="System.Threading.Tasks.ParallelLoopState.Break"></see> and <see cref="System.Threading.Tasks.ParallelLoopState.Stop"></see> may not be used in combination by iterations of the same loop.</exception>
32 <member name="P:System.Threading.Tasks.ParallelLoopState.IsExceptional">
33 <summary>Gets whether any iteration of the loop has thrown an exception that went unhandled by that iteration.</summary>
34 <returns><see langword="true"></see> if an unhandled exception was thrown; otherwise, <see langword="false"></see>.</returns>
36 <member name="P:System.Threading.Tasks.ParallelLoopState.IsStopped">
37 <summary>Gets whether any iteration of the loop has called the <see cref="M:System.Threading.Tasks.ParallelLoopState.Stop"></see> method.</summary>
38 <returns><see langword="true"></see> if any iteration has stopped the loop by calling the <see cref="M:System.Threading.Tasks.ParallelLoopState.Stop"></see> method; otherwise, <see langword="false"></see>.</returns>
40 <member name="P:System.Threading.Tasks.ParallelLoopState.LowestBreakIteration">
41 <summary>Gets the lowest iteration of the loop from which <see cref="M:System.Threading.Tasks.ParallelLoopState.Break"></see> was called.</summary>
42 <returns>The lowest iteration from which <see cref="M:System.Threading.Tasks.ParallelLoopState.Break"></see> was called. In the case of a <see cref="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0})"></see> loop, the value is based on an internally-generated index.</returns>
44 <member name="P:System.Threading.Tasks.ParallelLoopState.ShouldExitCurrentIteration">
45 <summary>Gets whether the current iteration of the loop should exit based on requests made by this or other iterations.</summary>
46 <returns><see langword="true"></see> if the current iteration should exit; otherwise, <see langword="false"></see>.</returns>
48 <member name="M:System.Threading.Tasks.ParallelLoopState.Stop">
49 <summary>Communicates that the <see cref="T:System.Threading.Tasks.Parallel"></see> loop should cease execution at the system&#39;s earliest convenience.</summary>
50 <exception cref="T:System.InvalidOperationException">The <see cref="System.Threading.Tasks.ParallelLoopState.Break"></see> method was called previously. <see cref="System.Threading.Tasks.ParallelLoopState.Break"></see> and <see cref="System.Threading.Tasks.ParallelLoopState.Stop"></see> may not be used in combination by iterations of the same loop.</exception>
52 <member name="T:System.Threading.Tasks.ParallelLoopResult">
53 <summary>Provides completion status on the execution of a <see cref="T:System.Threading.Tasks.Parallel"></see> loop.</summary>
55 <member name="P:System.Threading.Tasks.ParallelLoopResult.IsCompleted">
56 <summary>Gets whether the loop ran to completion, such that all iterations of the loop were executed and the loop didn&#39;t receive a request to end prematurely.</summary>
57 <returns>true if the loop ran to completion; otherwise false;</returns>
59 <member name="P:System.Threading.Tasks.ParallelLoopResult.LowestBreakIteration">
60 <summary>Gets the index of the lowest iteration from which <see cref="M:System.Threading.Tasks.ParallelLoopState.Break"></see> was called.</summary>
61 <returns>Returns an integer that represents the lowest iteration from which the Break statement was called.</returns>
63 <member name="T:System.Threading.Tasks.Parallel">
64 <summary>Provides support for parallel loops and regions.</summary>
66 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Action{System.Int32,System.Threading.Tasks.ParallelLoopState})">
67 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
68 <param name="fromInclusive">The start index, inclusive.</param>
69 <param name="toExclusive">The end index, exclusive.</param>
70 <param name="body">The delegate that is invoked once per iteration.</param>
71 <returns>A structure that contains information about which portion of the loop completed.</returns>
72 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
73 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
75 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Action{System.Int32})">
76 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop in which iterations may run in parallel.</summary>
77 <param name="fromInclusive">The start index, inclusive.</param>
78 <param name="toExclusive">The end index, exclusive.</param>
79 <param name="body">The delegate that is invoked once per iteration.</param>
80 <returns>A structure that contains information about which portion of the loop completed.</returns>
81 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
82 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
84 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Action{System.Int64,System.Threading.Tasks.ParallelLoopState})">
85 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop with 64-bit indexes in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
86 <param name="fromInclusive">The start index, inclusive.</param>
87 <param name="toExclusive">The end index, exclusive.</param>
88 <param name="body">The delegate that is invoked once per iteration.</param>
89 <returns>A <see cref="T:System.Threading.Tasks.ParallelLoopResult"></see> structure that contains information on what portion of the loop completed.</returns>
90 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
91 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
93 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Action{System.Int64})">
94 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop with 64-bit indexes in which iterations may run in parallel.</summary>
95 <param name="fromInclusive">The start index, inclusive.</param>
96 <param name="toExclusive">The end index, exclusive.</param>
97 <param name="body">The delegate that is invoked once per iteration.</param>
98 <returns>A structure that contains information about which portion of the loop completed.</returns>
99 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
100 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
102 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Threading.Tasks.ParallelOptions,System.Action{System.Int32,System.Threading.Tasks.ParallelLoopState})">
103 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
104 <param name="fromInclusive">The start index, inclusive.</param>
105 <param name="toExclusive">The end index, exclusive.</param>
106 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
107 <param name="body">The delegate that is invoked once per iteration.</param>
108 <returns>A structure that contains information about which portion of the loop completed.</returns>
109 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
110 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
112 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.</exception>
113 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
114 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
116 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Threading.Tasks.ParallelOptions,System.Action{System.Int32})">
117 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop in which iterations may run in parallel and loop options can be configured.</summary>
118 <param name="fromInclusive">The start index, inclusive.</param>
119 <param name="toExclusive">The end index, exclusive.</param>
120 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
121 <param name="body">The delegate that is invoked once per iteration.</param>
122 <returns>A structure that contains information about which portion of the loop completed.</returns>
123 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
124 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
126 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.</exception>
127 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
128 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
130 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Threading.Tasks.ParallelOptions,System.Action{System.Int64,System.Threading.Tasks.ParallelLoopState})">
131 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop with 64-bit indexes in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
132 <param name="fromInclusive">The start index, inclusive.</param>
133 <param name="toExclusive">The end index, exclusive.</param>
134 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
135 <param name="body">The delegate that is invoked once per iteration.</param>
136 <returns>A structure that contains information about which portion of the loop completed.</returns>
137 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
138 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
140 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.</exception>
141 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
142 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
144 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Threading.Tasks.ParallelOptions,System.Action{System.Int64})">
145 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop with 64-bit indexes in which iterations may run in parallel and loop options can be configured.</summary>
146 <param name="fromInclusive">The start index, inclusive.</param>
147 <param name="toExclusive">The end index, exclusive.</param>
148 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
149 <param name="body">The delegate that is invoked once per iteration.</param>
150 <returns>A structure that contains information about which portion of the loop completed.</returns>
151 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
152 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
154 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.</exception>
155 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
156 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
158 <member name="M:System.Threading.Tasks.Parallel.For``1(System.Int64,System.Int64,System.Threading.Tasks.ParallelOptions,System.Func{``0},System.Func{System.Int64,System.Threading.Tasks.ParallelLoopState,``0,``0},System.Action{``0})">
159 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop with 64-bit indexes and thread-local data in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
160 <param name="fromInclusive">The start index, inclusive.</param>
161 <param name="toExclusive">The end index, exclusive.</param>
162 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
163 <param name="localInit">The function delegate that returns the initial state of the local data for each thread.</param>
164 <param name="body">The delegate that is invoked once per iteration.</param>
165 <param name="localFinally">The delegate that performs a final action on the local state of each thread.</param>
166 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
167 <returns>A structure that contains information about which portion of the loop completed.</returns>
168 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
170 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
172 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.
174 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.</exception>
175 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
176 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
177 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
179 <member name="M:System.Threading.Tasks.Parallel.For``1(System.Int32,System.Int32,System.Threading.Tasks.ParallelOptions,System.Func{``0},System.Func{System.Int32,System.Threading.Tasks.ParallelLoopState,``0,``0},System.Action{``0})">
180 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop with thread-local data in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
181 <param name="fromInclusive">The start index, inclusive.</param>
182 <param name="toExclusive">The end index, exclusive.</param>
183 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
184 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
185 <param name="body">The delegate that is invoked once per iteration.</param>
186 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
187 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
188 <returns>A structure that contains information about which portion of the loop completed.</returns>
189 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
191 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
193 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.
195 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.</exception>
196 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
197 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
198 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
200 <member name="M:System.Threading.Tasks.Parallel.For``1(System.Int32,System.Int32,System.Func{``0},System.Func{System.Int32,System.Threading.Tasks.ParallelLoopState,``0,``0},System.Action{``0})">
201 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop with thread-local data in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
202 <param name="fromInclusive">The start index, inclusive.</param>
203 <param name="toExclusive">The end index, exclusive.</param>
204 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
205 <param name="body">The delegate that is invoked once per iteration.</param>
206 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
207 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
208 <returns>A structure that contains information about which portion of the loop completed.</returns>
209 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
211 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
213 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.</exception>
214 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
216 <member name="M:System.Threading.Tasks.Parallel.For``1(System.Int64,System.Int64,System.Func{``0},System.Func{System.Int64,System.Threading.Tasks.ParallelLoopState,``0,``0},System.Action{``0})">
217 <summary>Executes a <see langword="for"></see> (<see langword="For"></see> in Visual Basic) loop with 64-bit indexes and thread-local data in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
218 <param name="fromInclusive">The start index, inclusive.</param>
219 <param name="toExclusive">The end index, exclusive.</param>
220 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
221 <param name="body">The delegate that is invoked once per iteration.</param>
222 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
223 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
224 <returns>A structure that contains information about which portion of the loop completed.</returns>
225 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
227 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
229 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.</exception>
230 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
232 <member name="M:System.Threading.Tasks.Parallel.ForEach``2(System.Collections.Generic.IEnumerable{``0},System.Threading.Tasks.ParallelOptions,System.Func{``1},System.Func{``0,System.Threading.Tasks.ParallelLoopState,``1,``1},System.Action{``1})">
233 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation with thread-local data on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated..</summary>
234 <param name="source">An enumerable data source.</param>
235 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
236 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
237 <param name="body">The delegate that is invoked once per iteration.</param>
238 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
239 <typeparam name="TSource">The type of the data in the source.</typeparam>
240 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
241 <returns>A structure that contains information about which portion of the loop completed.</returns>
242 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
244 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.
246 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
248 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
250 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.</exception>
251 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
252 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
253 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
255 <member name="M:System.Threading.Tasks.Parallel.ForEach``2(System.Collections.Generic.IEnumerable{``0},System.Threading.Tasks.ParallelOptions,System.Func{``1},System.Func{``0,System.Threading.Tasks.ParallelLoopState,System.Int64,``1,``1},System.Action{``1})">
256 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation with thread-local data and 64-bit indexes on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
257 <param name="source">An enumerable data source.</param>
258 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
259 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
260 <param name="body">The delegate that is invoked once per iteration.</param>
261 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
262 <typeparam name="TSource">The type of the data in the source.</typeparam>
263 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
264 <returns>A structure that contains information about which portion of the loop completed.</returns>
265 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
267 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.
269 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
271 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
273 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.</exception>
274 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
275 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
276 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
278 <member name="M:System.Threading.Tasks.Parallel.ForEach``2(System.Collections.Concurrent.Partitioner{``0},System.Threading.Tasks.ParallelOptions,System.Func{``1},System.Func{``0,System.Threading.Tasks.ParallelLoopState,``1,``1},System.Action{``1})">
279 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation with thread-local data on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
280 <param name="source">The partitioner that contains the original data source.</param>
281 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
282 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
283 <param name="body">The delegate that is invoked once per iteration.</param>
284 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
285 <typeparam name="TSource">The type of the elements in source.</typeparam>
286 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
287 <returns>A structure that contains information about which portion of the loop completed.</returns>
288 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
290 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.
292 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
294 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
296 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.</exception>
297 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref><see cref="System.Collections.Concurrent.Partitioner"></see> returns <see langword="false"></see> or the partitioner returns <see langword="null"></see> partitions.</exception>
298 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
299 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
300 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
302 <member name="M:System.Threading.Tasks.Parallel.ForEach``2(System.Collections.Concurrent.OrderablePartitioner{``0},System.Threading.Tasks.ParallelOptions,System.Func{``1},System.Func{``0,System.Threading.Tasks.ParallelLoopState,System.Int64,``1,``1},System.Action{``1})">
303 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation with 64-bit indexes and with thread-local data on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1"></see> in which iterations may run in parallel , loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
304 <param name="source">The orderable partitioner that contains the original data source.</param>
305 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
306 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
307 <param name="body">The delegate that is invoked once per iteration.</param>
308 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
309 <typeparam name="TSource">The type of the elements in source.</typeparam>
310 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
311 <returns>A structure that contains information about which portion of the loop completed.</returns>
312 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
314 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.
316 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
318 The <paramref name="localInit">localInit</paramref> or <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.</exception>
319 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref><see cref="System.Collections.Concurrent.Partitioner"></see> returns <see langword="false"></see> or the partitioner returns <see langword="null"></see> partitions.</exception>
320 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
321 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
322 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
324 <member name="M:System.Threading.Tasks.Parallel.ForEach``2(System.Collections.Generic.IEnumerable{``0},System.Func{``1},System.Func{``0,System.Threading.Tasks.ParallelLoopState,``1,``1},System.Action{``1})">
325 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation with thread-local data on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
326 <param name="source">An enumerable data source.</param>
327 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
328 <param name="body">The delegate that is invoked once per iteration.</param>
329 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
330 <typeparam name="TSource">The type of the data in the source.</typeparam>
331 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
332 <returns>A structure that contains information about which portion of the loop completed.</returns>
333 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
335 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
337 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
339 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.</exception>
340 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
342 <member name="M:System.Threading.Tasks.Parallel.ForEach``2(System.Collections.Generic.IEnumerable{``0},System.Func{``1},System.Func{``0,System.Threading.Tasks.ParallelLoopState,System.Int64,``1,``1},System.Action{``1})">
343 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation with thread-local data on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
344 <param name="source">An enumerable data source.</param>
345 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
346 <param name="body">The delegate that is invoked once per iteration.</param>
347 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
348 <typeparam name="TSource">The type of the data in the source.</typeparam>
349 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
350 <returns>A structure that contains information about which portion of the loop completed.</returns>
351 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
353 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
355 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
357 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.</exception>
358 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
360 <member name="M:System.Threading.Tasks.Parallel.ForEach``2(System.Collections.Concurrent.Partitioner{``0},System.Func{``1},System.Func{``0,System.Threading.Tasks.ParallelLoopState,``1,``1},System.Action{``1})">
361 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation with thread-local data on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
362 <param name="source">The partitioner that contains the original data source.</param>
363 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
364 <param name="body">The delegate that is invoked once per iteration.</param>
365 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
366 <typeparam name="TSource">The type of the elements in source.</typeparam>
367 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
368 <returns>A structure that contains information about which portion of the loop completed.</returns>
369 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
371 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
373 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
375 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.</exception>
376 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref><see cref="System.Collections.Concurrent.Partitioner"></see> returns <see langword="false"></see> or the partitioner returns <see langword="null"></see> partitions.</exception>
377 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
379 <member name="M:System.Threading.Tasks.Parallel.ForEach``2(System.Collections.Concurrent.OrderablePartitioner{``0},System.Func{``1},System.Func{``0,System.Threading.Tasks.ParallelLoopState,System.Int64,``1,``1},System.Action{``1})">
380 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation with thread-local data on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
381 <param name="source">The orderable partitioner that contains the original data source.</param>
382 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
383 <param name="body">The delegate that is invoked once per iteration.</param>
384 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
385 <typeparam name="TSource">The type of the elements in source.</typeparam>
386 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
387 <returns>A structure that contains information about which portion of the loop completed.</returns>
388 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
390 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.
392 The <paramref name="localInit">localInit</paramref> argument is <see langword="null"></see>.
394 The <paramref name="localFinally">localFinally</paramref> argument is <see langword="null"></see>.</exception>
395 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref><see cref="System.Collections.Concurrent.Partitioner"></see> returns <see langword="false"></see> or the partitioner returns <see langword="null"></see> partitions.</exception>
396 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
398 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0})">
399 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel and loop options can be configured.</summary>
400 <param name="source">An enumerable data source.</param>
401 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
402 <param name="body">The delegate that is invoked once per iteration.</param>
403 <typeparam name="TSource">The type of the data in the source.</typeparam>
404 <returns>A structure that contains information about which portion of the loop completed.</returns>
405 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled</exception>
406 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
408 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.
410 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
411 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
412 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
414 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0,System.Threading.Tasks.ParallelLoopState})">
415 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
416 <param name="source">An enumerable data source.</param>
417 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
418 <param name="body">The delegate that is invoked once per iteration.</param>
419 <typeparam name="TSource">The type of the data in the source.</typeparam>
420 <returns>A structure that contains information about which portion of the loop completed.</returns>
421 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled</exception>
422 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
424 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.
426 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
427 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
428 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
430 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState})">
431 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
432 <param name="source">An enumerable data source.</param>
433 <param name="body">The delegate that is invoked once per iteration.</param>
434 <typeparam name="TSource">The type of the data in the source.</typeparam>
435 <returns>A structure that contains information about which portion of the loop completed.</returns>
436 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
438 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
439 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
441 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0})">
442 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel and loop options can be configured.</summary>
443 <param name="source">The partitioner that contains the original data source.</param>
444 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
445 <param name="body">The delegate that is invoked once per iteration.</param>
446 <typeparam name="TSource">The type of the elements in source.</typeparam>
447 <returns>A structure that contains information about which portion of the loop completed.</returns>
448 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
449 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
450 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
452 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.
454 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
455 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> partitioner returns <see langword="false"></see>.
457 The exception that is thrown when any methods in the <paramref name="source">source</paramref> partitioner return <see langword="null"></see>.</exception>
459 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0,System.Threading.Tasks.ParallelLoopState})">
460 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
461 <param name="source">The partitioner that contains the original data source.</param>
462 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
463 <param name="body">The delegate that is invoked once per iteration.</param>
464 <typeparam name="TSource">The type of the elements in source.</typeparam>
465 <returns>A structure that contains information about which portion of the loop completed.</returns>
466 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
467 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
468 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
470 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.
472 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
473 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> partitioner returns <see langword="false"></see>.
475 The exception that is thrown when any methods in the <paramref name="source">source</paramref> partitioner return <see langword="null"></see>.</exception>
477 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.OrderablePartitioner{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0,System.Threading.Tasks.ParallelLoopState,System.Int64})">
478 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
479 <param name="source">The orderable partitioner that contains the original data source.</param>
480 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
481 <param name="body">The delegate that is invoked once per iteration.</param>
482 <typeparam name="TSource">The type of the elements in source.</typeparam>
483 <returns>A structure that contains information about which portion of the loop completed.</returns>
484 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled</exception>
485 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
487 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.
489 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
490 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
491 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> orderable partitioner returns <see langword="false"></see>.
493 The <see cref="System.Collections.Concurrent.OrderablePartitioner`1.KeysNormalized"></see> property in the <paramref name="source">source</paramref> orderable partitioner returns <see langword="false"></see>.
495 The exception that is thrown when any methods in the <paramref name="source">source</paramref> orderable partitioner return <see langword="null"></see>.</exception>
497 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})">
498 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel.</summary>
499 <param name="source">An enumerable data source.</param>
500 <param name="body">The delegate that is invoked once per iteration.</param>
501 <typeparam name="TSource">The type of the data in the source.</typeparam>
502 <returns>A structure that contains information about which portion of the loop completed.</returns>
503 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
505 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
506 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
508 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState,System.Int64})">
509 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation with 64-bit indexes on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
510 <param name="source">An enumerable data source.</param>
511 <param name="body">The delegate that is invoked once per iteration.</param>
512 <typeparam name="TSource">The type of the data in the source.</typeparam>
513 <returns>A structure that contains information about which portion of the loop completed.</returns>
514 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
516 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
517 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
519 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0})">
520 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel.</summary>
521 <param name="source">The partitioner that contains the original data source.</param>
522 <param name="body">The delegate that is invoked once per iteration.</param>
523 <typeparam name="TSource">The type of the elements in source.</typeparam>
524 <returns>A structure that contains information about which portion of the loop completed.</returns>
525 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
527 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
528 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> partitioner returns <see langword="false"></see>.
530 The exception that is thrown when any methods in the <paramref name="source">source</paramref> partitioner return <see langword="null"></see>.
532 The <see cref="System.Collections.Concurrent.Partitioner`1.GetPartitions(System.Int32)"></see> method in the <paramref name="source">source</paramref> partitioner does not return the correct number of partitions.</exception>
534 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState})">
535 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
536 <param name="source">The partitioner that contains the original data source.</param>
537 <param name="body">The delegate that is invoked once per iteration.</param>
538 <typeparam name="TSource">The type of the elements in source.</typeparam>
539 <returns>A structure that contains information about which portion of the loop completed.</returns>
540 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
542 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
543 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> partitioner returns <see langword="false"></see>.
545 A method in the <paramref name="source">source</paramref> partitioner returns <see langword="null"></see>.
547 The <see cref="System.Collections.Concurrent.Partitioner`1.GetPartitions(System.Int32)"></see> method in the <paramref name="source">source</paramref> partitioner does not return the correct number of partitions.</exception>
549 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.OrderablePartitioner{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState,System.Int64})">
550 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1"></see> in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
551 <param name="source">The orderable partitioner that contains the original data source.</param>
552 <param name="body">The delegate that is invoked once per iteration.</param>
553 <typeparam name="TSource">The type of the elements in source.</typeparam>
554 <returns>A structure that contains information about which portion of the loop completed.</returns>
555 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
557 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
558 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> orderable partitioner returns <see langword="false"></see>.
560 The <see cref="System.Collections.Concurrent.OrderablePartitioner`1.KeysNormalized"></see> property in the source orderable partitioner returns <see langword="false"></see>.
562 Any methods in the source orderable partitioner return <see langword="null"></see>.</exception>
564 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0,System.Threading.Tasks.ParallelLoopState,System.Int64})">
565 <summary>Executes a <see langword="foreach"></see> (<see langword="For Each"></see> in Visual Basic) operation with 64-bit indexes on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
566 <param name="source">An enumerable data source.</param>
567 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
568 <param name="body">The delegate that is invoked once per iteration.</param>
569 <typeparam name="TSource">The type of the data in the source.</typeparam>
570 <returns>A structure that contains information about which portion of the loop completed.</returns>
571 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled</exception>
572 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is <see langword="null"></see>.
574 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.
576 The <paramref name="body">body</paramref> argument is <see langword="null"></see>.</exception>
577 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
578 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
580 <member name="M:System.Threading.Tasks.Parallel.Invoke(System.Action[])">
581 <summary>Executes each of the provided actions, possibly in parallel.</summary>
582 <param name="actions">An array of <see cref="T:System.Action"></see> to execute.</param>
583 <exception cref="T:System.ArgumentNullException">The <paramref name="actions">actions</paramref> argument is <see langword="null"></see>.</exception>
584 <exception cref="T:System.AggregateException">The exception that is thrown when any action in the <paramref name="actions">actions</paramref> array throws an exception.</exception>
585 <exception cref="T:System.ArgumentException">The <paramref name="actions">actions</paramref> array contains a <see langword="null"></see> element.</exception>
587 <member name="M:System.Threading.Tasks.Parallel.Invoke(System.Threading.Tasks.ParallelOptions,System.Action[])">
588 <summary>Executes each of the provided actions, possibly in parallel, unless the operation is cancelled by the user.</summary>
589 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
590 <param name="actions">An array of actions to execute.</param>
591 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> is set.</exception>
592 <exception cref="T:System.ArgumentNullException">The <paramref name="actions">actions</paramref> argument is <see langword="null"></see>.
594 The <paramref name="parallelOptions">parallelOptions</paramref> argument is <see langword="null"></see>.</exception>
595 <exception cref="T:System.AggregateException">The exception that is thrown when any action in the <paramref name="actions">actions</paramref> array throws an exception.</exception>
596 <exception cref="T:System.ArgumentException">The <paramref name="actions">actions</paramref> array contains a <see langword="null"></see> element.</exception>
597 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>