1 <?xml version="1.0" encoding="utf-8"?>
4 <name>System.Threading.Tasks.Parallel</name>
7 <member name="T:System.Threading.Tasks.Parallel">
8 <summary>Provides support for parallel loops and regions.</summary>
10 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Action{System.Int32,System.Threading.Tasks.ParallelLoopState})">
11 <summary>Executes a <see langword="for" /> loop in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
12 <param name="fromInclusive">The start index, inclusive.</param>
13 <param name="toExclusive">The end index, exclusive.</param>
14 <param name="body">The delegate that is invoked once per iteration.</param>
15 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.</exception>
16 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
17 <returns>A structure that contains information about which portion of the loop completed.</returns>
19 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Action{System.Int32})">
20 <summary>Executes a <see langword="for" /> loop in which iterations may run in parallel.</summary>
21 <param name="fromInclusive">The start index, inclusive.</param>
22 <param name="toExclusive">The end index, exclusive.</param>
23 <param name="body">The delegate that is invoked once per iteration.</param>
24 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.</exception>
25 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
26 <returns>A structure that contains information about which portion of the loop completed.</returns>
28 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Threading.Tasks.ParallelOptions,System.Action{System.Int32,System.Threading.Tasks.ParallelLoopState})">
29 <summary>Executes a <see langword="for" /> 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>
30 <param name="fromInclusive">The start index, inclusive.</param>
31 <param name="toExclusive">The end index, exclusive.</param>
32 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
33 <param name="body">The delegate that is invoked once per iteration.</param>
34 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
35 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
39 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
40 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
41 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
42 <returns>A structure that contains information about which portion of the loop completed.</returns>
44 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Threading.Tasks.ParallelOptions,System.Action{System.Int32})">
45 <summary>Executes a <see langword="for" /> loop in which iterations may run in parallel and loop options can be configured.</summary>
46 <param name="fromInclusive">The start index, inclusive.</param>
47 <param name="toExclusive">The end index, exclusive.</param>
48 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
49 <param name="body">The delegate that is invoked once per iteration.</param>
50 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
51 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
55 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
56 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
57 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
58 <returns>A structure that contains information about which portion of the loop completed.</returns>
60 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Action{System.Int64,System.Threading.Tasks.ParallelLoopState})">
61 <summary>Executes a <see langword="for" /> loop with 64-bit indexes in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
62 <param name="fromInclusive">The start index, inclusive.</param>
63 <param name="toExclusive">The end index, exclusive.</param>
64 <param name="body">The delegate that is invoked once per iteration.</param>
65 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.</exception>
66 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
67 <returns>A <see cref="T:System.Threading.Tasks.ParallelLoopResult" /> structure that contains information on what portion of the loop completed.</returns>
69 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Action{System.Int64})">
70 <summary>Executes a <see langword="for" /> loop with 64-bit indexes in which iterations may run in parallel.</summary>
71 <param name="fromInclusive">The start index, inclusive.</param>
72 <param name="toExclusive">The end index, exclusive.</param>
73 <param name="body">The delegate that is invoked once per iteration.</param>
74 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.</exception>
75 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
76 <returns>A structure that contains information about which portion of the loop completed.</returns>
78 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Threading.Tasks.ParallelOptions,System.Action{System.Int64,System.Threading.Tasks.ParallelLoopState})">
79 <summary>Executes a <see langword="for" /> 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>
80 <param name="fromInclusive">The start index, inclusive.</param>
81 <param name="toExclusive">The end index, exclusive.</param>
82 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
83 <param name="body">The delegate that is invoked once per iteration.</param>
84 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
85 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
89 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
90 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
91 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
92 <returns>A structure that contains information about which portion of the loop completed.</returns>
94 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Threading.Tasks.ParallelOptions,System.Action{System.Int64})">
95 <summary>Executes a <see langword="for" /> loop with 64-bit indexes in which iterations may run in parallel and loop options can be configured.</summary>
96 <param name="fromInclusive">The start index, inclusive.</param>
97 <param name="toExclusive">The end index, exclusive.</param>
98 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
99 <param name="body">The delegate that is invoked once per iteration.</param>
100 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
101 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
105 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
106 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
107 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
108 <returns>A structure that contains information about which portion of the loop completed.</returns>
110 <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})">
111 <summary>Executes a <see langword="for" /> loop with thread-local data in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
112 <param name="fromInclusive">The start index, inclusive.</param>
113 <param name="toExclusive">The end index, exclusive.</param>
114 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
115 <param name="body">The delegate that is invoked once per iteration.</param>
116 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
117 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
118 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
122 The <paramref name="localInit" /> argument is <see langword="null" />.
126 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
127 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
128 <returns>A structure that contains information about which portion of the loop completed.</returns>
130 <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})">
131 <summary>Executes a <see langword="for" /> 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>
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="localInit">The function delegate that returns the initial state of the local data for each task.</param>
136 <param name="body">The delegate that is invoked once per iteration.</param>
137 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
138 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
139 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
143 The <paramref name="localInit" /> argument is <see langword="null" />.
147 The <paramref name="localFinally" /> argument is <see langword="null" />.
151 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
152 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
153 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
154 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
155 <returns>A structure that contains information about which portion of the loop completed.</returns>
157 <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})">
158 <summary>Executes a <see langword="for" /> 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>
159 <param name="fromInclusive">The start index, inclusive.</param>
160 <param name="toExclusive">The end index, exclusive.</param>
161 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
162 <param name="body">The delegate that is invoked once per iteration.</param>
163 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
164 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
165 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
169 The <paramref name="localInit" /> argument is <see langword="null" />.
173 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
174 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
175 <returns>A structure that contains information about which portion of the loop completed.</returns>
177 <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})">
178 <summary>Executes a <see langword="for" /> 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>
179 <param name="fromInclusive">The start index, inclusive.</param>
180 <param name="toExclusive">The end index, exclusive.</param>
181 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
182 <param name="localInit">The function delegate that returns the initial state of the local data for each thread.</param>
183 <param name="body">The delegate that is invoked once per iteration.</param>
184 <param name="localFinally">The delegate that performs a final action on the local state of each thread.</param>
185 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
186 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
190 The <paramref name="localInit" /> argument is <see langword="null" />.
194 The <paramref name="localFinally" /> argument is <see langword="null" />.
198 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
199 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
200 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
201 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
202 <returns>A structure that contains information about which portion of the loop completed.</returns>
204 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.OrderablePartitioner{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState,System.Int64})">
205 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1" /> in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
206 <param name="source">The orderable partitioner that contains the original data source.</param>
207 <param name="body">The delegate that is invoked once per iteration.</param>
208 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
209 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
213 The <paramref name="body" /> argument is <see langword="null" />.</exception>
214 <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions" /> property in the <paramref name="source" /> orderable partitioner returns <see langword="false" />.
218 The <see cref="P:System.Collections.Concurrent.OrderablePartitioner`1.KeysNormalized" /> property in the source orderable partitioner returns <see langword="false" />.
222 Any methods in the source orderable partitioner return <see langword="null" />.</exception>
223 <exception cref="T:System.AggregateException">The exception thrown from one of the specified delegates.</exception>
224 <returns>A structure that contains information about which portion of the loop completed.</returns>
226 <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})">
227 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1" /> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
228 <param name="source">The orderable partitioner that contains the original data source.</param>
229 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
230 <param name="body">The delegate that is invoked once per iteration.</param>
231 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
232 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled</exception>
233 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
237 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
241 The <paramref name="body" /> argument is <see langword="null" />.</exception>
242 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
243 <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions" /> property in the <paramref name="source" /> orderable partitioner returns <see langword="false" />.
247 The <see cref="P:System.Collections.Concurrent.OrderablePartitioner`1.KeysNormalized" /> property in the <paramref name="source" /> orderable partitioner returns <see langword="false" />.
251 The exception that is thrown when any methods in the <paramref name="source" /> orderable partitioner return <see langword="null" />.</exception>
252 <exception cref="T:System.AggregateException">The exception that is thrown to contain an exception thrown from one of the specified delegates.</exception>
253 <returns>A structure that contains information about which portion of the loop completed.</returns>
255 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState})">
256 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner" /> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
257 <param name="source">The partitioner that contains the original data source.</param>
258 <param name="body">The delegate that is invoked once per iteration.</param>
259 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
260 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
264 The <paramref name="body" /> argument is <see langword="null" />.</exception>
265 <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions" /> property in the <paramref name="source" /> partitioner returns <see langword="false" />.
269 A method in the <paramref name="source" /> partitioner returns <see langword="null" />.
273 The <see cref="M:System.Collections.Concurrent.Partitioner`1.GetPartitions(System.Int32)" /> method in the <paramref name="source" /> partitioner does not return the correct number of partitions.</exception>
274 <exception cref="T:System.AggregateException">The exception that is thrown to contain an exception thrown from one of the specified delegates.</exception>
275 <returns>A structure that contains information about which portion of the loop completed.</returns>
277 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0})">
278 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner" /> in which iterations may run in parallel.</summary>
279 <param name="source">The partitioner that contains the original data source.</param>
280 <param name="body">The delegate that is invoked once per iteration.</param>
281 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
282 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
286 The <paramref name="body" /> argument is <see langword="null" />.</exception>
287 <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions" /> property in the <paramref name="source" /> partitioner returns <see langword="false" />.
291 The exception that is thrown when any methods in the <paramref name="source" /> partitioner return <see langword="null" />.
295 The <see cref="M:System.Collections.Concurrent.Partitioner`1.GetPartitions(System.Int32)" /> method in the <paramref name="source" /> partitioner does not return the correct number of partitions.</exception>
296 <exception cref="T:System.AggregateException">The exception that is thrown to contain an exception thrown from one of the specified delegates.</exception>
297 <returns>A structure that contains information about which portion of the loop completed.</returns>
299 <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})">
300 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner" /> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
301 <param name="source">The partitioner that contains the original data source.</param>
302 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
303 <param name="body">The delegate that is invoked once per iteration.</param>
304 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
305 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
306 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
307 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
311 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
315 The <paramref name="body" /> argument is <see langword="null" />.</exception>
316 <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions" /> property in the <paramref name="source" /> partitioner returns <see langword="false" />.
320 The exception that is thrown when any methods in the <paramref name="source" /> partitioner return <see langword="null" />.</exception>
321 <exception cref="T:System.AggregateException">The exception that is thrown to contain an exception thrown from one of the specified delegates.</exception>
322 <returns>A structure that contains information about which portion of the loop completed.</returns>
324 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0})">
325 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner" /> in which iterations may run in parallel and loop options can be configured.</summary>
326 <param name="source">The partitioner that contains the original data source.</param>
327 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
328 <param name="body">The delegate that is invoked once per iteration.</param>
329 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
330 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
331 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
332 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
336 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
340 The <paramref name="body" /> argument is <see langword="null" />.</exception>
341 <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions" /> property in the <paramref name="source" /> partitioner returns <see langword="false" />.
345 The exception that is thrown when any methods in the <paramref name="source" /> partitioner return <see langword="null" />.</exception>
346 <exception cref="T:System.AggregateException">The exception that is thrown to contain an exception thrown from one of the specified delegates.</exception>
347 <returns>A structure that contains information about which portion of the loop completed.</returns>
349 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState,System.Int64})">
350 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation with 64-bit indexes on an <see cref="T:System.Collections.IEnumerable" /> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
351 <param name="source">An enumerable data source.</param>
352 <param name="body">The delegate that is invoked once per iteration.</param>
353 <typeparam name="TSource">The type of the data in the source.</typeparam>
354 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
358 The <paramref name="body" /> argument is <see langword="null" />.</exception>
359 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
360 <returns>A structure that contains information about which portion of the loop completed.</returns>
362 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState})">
363 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable" /> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
364 <param name="source">An enumerable data source.</param>
365 <param name="body">The delegate that is invoked once per iteration.</param>
366 <typeparam name="TSource">The type of the data in the source.</typeparam>
367 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
371 The <paramref name="body" /> argument is <see langword="null" />.</exception>
372 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
373 <returns>A structure that contains information about which portion of the loop completed.</returns>
375 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})">
376 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable" /> in which iterations may run in parallel.</summary>
377 <param name="source">An enumerable data source.</param>
378 <param name="body">The delegate that is invoked once per iteration.</param>
379 <typeparam name="TSource">The type of the data in the source.</typeparam>
380 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
384 The <paramref name="body" /> argument is <see langword="null" />.</exception>
385 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
386 <returns>A structure that contains information about which portion of the loop completed.</returns>
388 <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})">
389 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation with 64-bit indexes on an <see cref="T:System.Collections.IEnumerable" /> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
390 <param name="source">An enumerable data source.</param>
391 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
392 <param name="body">The delegate that is invoked once per iteration.</param>
393 <typeparam name="TSource">The type of the data in the source.</typeparam>
394 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled</exception>
395 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
399 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
403 The <paramref name="body" /> argument is <see langword="null" />.</exception>
404 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
405 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
406 <returns>A structure that contains information about which portion of the loop completed.</returns>
408 <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})">
409 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable" /> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
410 <param name="source">An enumerable data source.</param>
411 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
412 <param name="body">The delegate that is invoked once per iteration.</param>
413 <typeparam name="TSource">The type of the data in the source.</typeparam>
414 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled</exception>
415 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
419 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
423 The <paramref name="body" /> argument is <see langword="null" />.</exception>
424 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
425 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
426 <returns>A structure that contains information about which portion of the loop completed.</returns>
428 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0})">
429 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable" /> in which iterations may run in parallel and loop options can be configured.</summary>
430 <param name="source">An enumerable data source.</param>
431 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
432 <param name="body">The delegate that is invoked once per iteration.</param>
433 <typeparam name="TSource">The type of the data in the source.</typeparam>
434 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled</exception>
435 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
439 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
443 The <paramref name="body" /> argument is <see langword="null" />.</exception>
444 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
445 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
446 <returns>A structure that contains information about which portion of the loop completed.</returns>
448 <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})">
449 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation with thread-local data on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1" /> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
450 <param name="source">The orderable partitioner that contains the original data source.</param>
451 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
452 <param name="body">The delegate that is invoked once per iteration.</param>
453 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
454 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
455 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
456 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
460 The <paramref name="body" /> argument is <see langword="null" />.
464 The <paramref name="localInit" /> argument is <see langword="null" />.
468 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
469 <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions" /> property in the <paramref name="source" /><see cref="T:System.Collections.Concurrent.Partitioner" /> returns <see langword="false" /> or the partitioner returns <see langword="null" /> partitions.</exception>
470 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
471 <returns>A structure that contains information about which portion of the loop completed.</returns>
473 <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})">
474 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation with 64-bit indexes and with thread-local data on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1" /> in which iterations may run in parallel , loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
475 <param name="source">The orderable partitioner that contains the original data source.</param>
476 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
477 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
478 <param name="body">The delegate that is invoked once per iteration.</param>
479 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
480 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
481 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
482 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
486 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
490 The <paramref name="body" /> argument is <see langword="null" />.
494 The <paramref name="localInit" /> or <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
495 <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions" /> property in the <paramref name="source" /><see cref="T:System.Collections.Concurrent.Partitioner" /> returns <see langword="false" /> or the partitioner returns <see langword="null" /> partitions.</exception>
496 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
497 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
498 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
499 <returns>A structure that contains information about which portion of the loop completed.</returns>
501 <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})">
502 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation with thread-local data on a <see cref="T:System.Collections.Concurrent.Partitioner" /> in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
503 <param name="source">The partitioner that contains the original data source.</param>
504 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
505 <param name="body">The delegate that is invoked once per iteration.</param>
506 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
507 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
508 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
509 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
513 The <paramref name="body" /> argument is <see langword="null" />.
517 The <paramref name="localInit" /> argument is <see langword="null" />.
521 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
522 <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions" /> property in the <paramref name="source" /><see cref="T:System.Collections.Concurrent.Partitioner" /> returns <see langword="false" /> or the partitioner returns <see langword="null" /> partitions.</exception>
523 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
524 <returns>A structure that contains information about which portion of the loop completed.</returns>
526 <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})">
527 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation with thread-local data on a <see cref="T:System.Collections.Concurrent.Partitioner" /> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
528 <param name="source">The partitioner that contains the original data source.</param>
529 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
530 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
531 <param name="body">The delegate that is invoked once per iteration.</param>
532 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
533 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
534 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
535 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
539 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
543 The <paramref name="body" /> argument is <see langword="null" />.
547 The <paramref name="localInit" /> argument is <see langword="null" />.
551 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
552 <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions" /> property in the <paramref name="source" /><see cref="T:System.Collections.Concurrent.Partitioner" /> returns <see langword="false" /> or the partitioner returns <see langword="null" /> partitions.</exception>
553 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
554 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
555 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
556 <returns>A structure that contains information about which portion of the loop completed.</returns>
558 <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})">
559 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation with thread-local data on an <see cref="T:System.Collections.IEnumerable" /> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
560 <param name="source">An enumerable data source.</param>
561 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
562 <param name="body">The delegate that is invoked once per iteration.</param>
563 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
564 <typeparam name="TSource">The type of the data in the source.</typeparam>
565 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
566 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
570 The <paramref name="body" /> argument is <see langword="null" />.
574 The <paramref name="localInit" /> argument is <see langword="null" />.
578 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
579 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
580 <returns>A structure that contains information about which portion of the loop completed.</returns>
582 <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})">
583 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation with thread-local data on an <see cref="T:System.Collections.IEnumerable" /> in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
584 <param name="source">An enumerable data source.</param>
585 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
586 <param name="body">The delegate that is invoked once per iteration.</param>
587 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
588 <typeparam name="TSource">The type of the data in the source.</typeparam>
589 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
590 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
594 The <paramref name="body" /> argument is <see langword="null" />.
598 The <paramref name="localInit" /> argument is <see langword="null" />.
602 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
603 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
604 <returns>A structure that contains information about which portion of the loop completed.</returns>
606 <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})">
607 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation with thread-local data on an <see cref="T:System.Collections.IEnumerable" /> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
608 <param name="source">An enumerable data source.</param>
609 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
610 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
611 <param name="body">The delegate that is invoked once per iteration.</param>
612 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
613 <typeparam name="TSource">The type of the data in the source.</typeparam>
614 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
615 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
619 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
623 The <paramref name="body" /> argument is <see langword="null" />.
627 The <paramref name="localInit" /> argument is <see langword="null" />.
631 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
632 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
633 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
634 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
635 <returns>A structure that contains information about which portion of the loop completed.</returns>
637 <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})">
638 <summary>Executes a <see langword="foreach" /> (<see langword="For Each" /> in Visual Basic) operation with thread-local data and 64-bit indexes on an <see cref="T:System.Collections.IEnumerable" /> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
639 <param name="source">An enumerable data source.</param>
640 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
641 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
642 <param name="body">The delegate that is invoked once per iteration.</param>
643 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
644 <typeparam name="TSource">The type of the data in the source.</typeparam>
645 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
646 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
650 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
654 The <paramref name="body" /> argument is <see langword="null" />.
658 The <paramref name="localInit" /> argument is <see langword="null" />.
662 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
663 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
664 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
665 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
666 <returns>A structure that contains information about which portion of the loop completed.</returns>
668 <member name="M:System.Threading.Tasks.Parallel.ForEachAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Func{``0,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask})">
669 <summary>Executes a <c>for-each</c> operation on an <see cref="T:System.Collections.Generic.IEnumerable`1" /> in which iterations may run in parallel.</summary>
670 <param name="source">An enumerable data source.</param>
671 <param name="body">An asynchronous delegate that is invoked once per element in the data source.</param>
672 <typeparam name="TSource">The type of the data in the source.</typeparam>
673 <exception cref="T:System.ArgumentNullException">
674 <paramref name="source" /> or <paramref name="body" /> is <see langword="null" />.</exception>
675 <returns>A task that represents the entire <c>for-each</c> operation.</returns>
677 <member name="M:System.Threading.Tasks.Parallel.ForEachAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Threading.CancellationToken,System.Func{``0,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask})">
678 <summary>Executes a <c>for-each</c> operation on an <see cref="T:System.Collections.Generic.IEnumerable`1" /> in which iterations may run in parallel.</summary>
679 <param name="source">An enumerable data source.</param>
680 <param name="cancellationToken">A cancellation token that may be used to cancel the <c>for-each</c> operation.</param>
681 <param name="body">An asynchronous delegate that is invoked once per element in the data source.</param>
682 <typeparam name="TSource">The type of the data in the source.</typeparam>
683 <exception cref="T:System.ArgumentNullException">
684 <paramref name="source" /> or <paramref name="body" /> is <see langword="null" />.</exception>
685 <returns>A task that represents the entire <c>for-each</c> operation.</returns>
687 <member name="M:System.Threading.Tasks.Parallel.ForEachAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Threading.Tasks.ParallelOptions,System.Func{``0,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask})">
688 <summary>Executes a <c>for-each</c> operation on an <see cref="T:System.Collections.Generic.IEnumerable`1" /> in which iterations may run in parallel.</summary>
689 <param name="source">An enumerable data source.</param>
690 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
691 <param name="body">An asynchronous delegate that is invoked once per element in the data source.</param>
692 <typeparam name="TSource">The type of the data in the source.</typeparam>
693 <exception cref="T:System.ArgumentNullException">
694 <paramref name="source" /> or <paramref name="body" /> is <see langword="null" />.</exception>
695 <returns>A task that represents the entire <c>for-each</c> operation.</returns>
697 <member name="M:System.Threading.Tasks.Parallel.ForEachAsync``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask})">
698 <summary>Executes a <c>for-each</c> operation on an <see cref="T:System.Collections.Generic.IEnumerable`1" /> in which iterations may run in parallel.</summary>
699 <param name="source">An enumerable data source.</param>
700 <param name="body">An asynchronous delegate that is invoked once per element in the data source.</param>
701 <typeparam name="TSource">The type of the data in the source.</typeparam>
702 <exception cref="T:System.ArgumentNullException">
703 <paramref name="source" /> or <paramref name="body" /> is <see langword="null" />.</exception>
704 <returns>A task that represents the entire <c>for-each</c> operation.</returns>
706 <member name="M:System.Threading.Tasks.Parallel.ForEachAsync``1(System.Collections.Generic.IEnumerable{``0},System.Threading.CancellationToken,System.Func{``0,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask})">
707 <summary>Executes a <c>for-each</c> operation on an <see cref="T:System.Collections.Generic.IEnumerable`1" /> in which iterations may run in parallel.</summary>
708 <param name="source">An enumerable data source.</param>
709 <param name="cancellationToken">A cancellation token that may be used to cancel the <c>for-each</c> operation.</param>
710 <param name="body">An asynchronous delegate that is invoked once per element in the data source.</param>
711 <typeparam name="TSource">The type of the data in the source.</typeparam>
712 <exception cref="T:System.ArgumentNullException">
713 <paramref name="source" /> or <paramref name="body" /> is <see langword="null" />.</exception>
714 <returns>A task that represents the entire <c>for-each</c> operation.</returns>
716 <member name="M:System.Threading.Tasks.Parallel.ForEachAsync``1(System.Collections.Generic.IEnumerable{``0},System.Threading.Tasks.ParallelOptions,System.Func{``0,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask})">
717 <summary>Executes a <c>for-each</c> operation on an <see cref="T:System.Collections.Generic.IEnumerable`1" /> in which iterations may run in parallel.</summary>
718 <param name="source">An enumerable data source.</param>
719 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
720 <param name="body">An asynchronous delegate that is invoked once per element in the data source.</param>
721 <typeparam name="TSource">The type of the data in the source.</typeparam>
722 <exception cref="T:System.ArgumentNullException">
723 <paramref name="source" /> or <paramref name="body" /> is <see langword="null" />.</exception>
724 <returns>A task that represents the entire <c>for-each</c> operation.</returns>
726 <member name="M:System.Threading.Tasks.Parallel.Invoke(System.Action[])">
727 <summary>Executes each of the provided actions, possibly in parallel.</summary>
728 <param name="actions">An array of <see cref="T:System.Action" /> to execute.</param>
729 <exception cref="T:System.ArgumentNullException">The <paramref name="actions" /> argument is <see langword="null" />.</exception>
730 <exception cref="T:System.AggregateException">The exception that is thrown when any action in the <paramref name="actions" /> array throws an exception.</exception>
731 <exception cref="T:System.ArgumentException">The <paramref name="actions" /> array contains a <see langword="null" /> element.</exception>
733 <member name="M:System.Threading.Tasks.Parallel.Invoke(System.Threading.Tasks.ParallelOptions,System.Action[])">
734 <summary>Executes each of the provided actions, possibly in parallel, unless the operation is cancelled by the user.</summary>
735 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
736 <param name="actions">An array of actions to execute.</param>
737 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> is set.</exception>
738 <exception cref="T:System.ArgumentNullException">The <paramref name="actions" /> argument is <see langword="null" />.
742 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
743 <exception cref="T:System.AggregateException">The exception that is thrown when any action in the <paramref name="actions" /> array throws an exception.</exception>
744 <exception cref="T:System.ArgumentException">The <paramref name="actions" /> array contains a <see langword="null" /> element.</exception>
745 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> associated with the <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> has been disposed.</exception>
747 <member name="T:System.Threading.Tasks.ParallelLoopResult">
748 <summary>Provides completion status on the execution of a <see cref="T:System.Threading.Tasks.Parallel" /> loop.</summary>
750 <member name="P:System.Threading.Tasks.ParallelLoopResult.IsCompleted">
751 <summary>Gets whether the loop ran to completion, such that all iterations of the loop were executed and the loop didn't receive a request to end prematurely.</summary>
753 <see langword="true" /> if the loop ran to completion; otherwise, <see langword="false" />.</returns>
755 <member name="P:System.Threading.Tasks.ParallelLoopResult.LowestBreakIteration">
756 <summary>Gets the index of the lowest iteration from which <see cref="M:System.Threading.Tasks.ParallelLoopState.Break" /> was called.</summary>
757 <returns>Returns an integer that represents the lowest iteration from which the Break statement was called.</returns>
759 <member name="T:System.Threading.Tasks.ParallelLoopState">
760 <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" /> class to each loop; you can not create instances in your code.</summary>
762 <member name="M:System.Threading.Tasks.ParallelLoopState.Break">
763 <summary>Communicates that the <see cref="T:System.Threading.Tasks.Parallel" /> loop should cease execution of iterations beyond the current iteration at the system's earliest convenience.</summary>
764 <exception cref="T:System.InvalidOperationException">The <see cref="M:System.Threading.Tasks.ParallelLoopState.Stop" /> method was previously called. <see cref="M:System.Threading.Tasks.ParallelLoopState.Break" /> and <see cref="M:System.Threading.Tasks.ParallelLoopState.Stop" /> may not be used in combination by iterations of the same loop.</exception>
766 <member name="M:System.Threading.Tasks.ParallelLoopState.Stop">
767 <summary>Communicates that the <see cref="T:System.Threading.Tasks.Parallel" /> loop should cease execution at the system's earliest convenience.</summary>
768 <exception cref="T:System.InvalidOperationException">The <see cref="M:System.Threading.Tasks.ParallelLoopState.Break" /> method was called previously. <see cref="M:System.Threading.Tasks.ParallelLoopState.Break" /> and <see cref="M:System.Threading.Tasks.ParallelLoopState.Stop" /> may not be used in combination by iterations of the same loop.</exception>
770 <member name="P:System.Threading.Tasks.ParallelLoopState.IsExceptional">
771 <summary>Gets whether any iteration of the loop has thrown an exception that went unhandled by that iteration.</summary>
773 <see langword="true" /> if an unhandled exception was thrown; otherwise, <see langword="false" />.</returns>
775 <member name="P:System.Threading.Tasks.ParallelLoopState.IsStopped">
776 <summary>Gets whether any iteration of the loop has called the <see cref="M:System.Threading.Tasks.ParallelLoopState.Stop" /> method.</summary>
778 <see langword="true" /> if any iteration has stopped the loop by calling the <see cref="M:System.Threading.Tasks.ParallelLoopState.Stop" /> method; otherwise, <see langword="false" />.</returns>
780 <member name="P:System.Threading.Tasks.ParallelLoopState.LowestBreakIteration">
781 <summary>Gets the lowest iteration of the loop from which <see cref="M:System.Threading.Tasks.ParallelLoopState.Break" /> was called.</summary>
782 <returns>The lowest iteration from which <see cref="M:System.Threading.Tasks.ParallelLoopState.Break" /> was called. In the case of a <see cref="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0})" /> loop, the value is based on an internally-generated index.</returns>
784 <member name="P:System.Threading.Tasks.ParallelLoopState.ShouldExitCurrentIteration">
785 <summary>Gets whether the current iteration of the loop should exit based on requests made by this or other iterations.</summary>
787 <see langword="true" /> if the current iteration should exit; otherwise, <see langword="false" />.</returns>
789 <member name="T:System.Threading.Tasks.ParallelOptions">
790 <summary>Stores options that configure the operation of methods on the <see cref="T:System.Threading.Tasks.Parallel" /> class.</summary>
792 <member name="M:System.Threading.Tasks.ParallelOptions.#ctor">
793 <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.ParallelOptions" /> class.</summary>
795 <member name="P:System.Threading.Tasks.ParallelOptions.CancellationToken">
796 <summary>Gets or sets the <see cref="T:System.Threading.CancellationToken" /> associated with this <see cref="T:System.Threading.Tasks.ParallelOptions" /> instance.</summary>
797 <returns>The token that is associated with this instance.</returns>
799 <member name="P:System.Threading.Tasks.ParallelOptions.MaxDegreeOfParallelism">
800 <summary>Gets or sets the maximum number of concurrent tasks enabled by this <see cref="T:System.Threading.Tasks.ParallelOptions" /> instance.</summary>
801 <exception cref="T:System.ArgumentOutOfRangeException">The property is being set to zero or to a value that is less than -1.</exception>
802 <returns>An integer that represents the maximum degree of parallelism.</returns>
804 <member name="P:System.Threading.Tasks.ParallelOptions.TaskScheduler">
805 <summary>Gets or sets the <see cref="T:System.Threading.Tasks.TaskScheduler" /> associated with this <see cref="T:System.Threading.Tasks.ParallelOptions" /> instance. Setting this property to null indicates that the current scheduler should be used.</summary>
806 <returns>The task scheduler that is associated with this instance.</returns>