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 <returns>A structure that contains information about which portion of the loop completed.</returns>
16 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.</exception>
17 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
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 <returns>A structure that contains information about which portion of the loop completed.</returns>
25 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.</exception>
26 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
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 <returns>A structure that contains information about which portion of the loop completed.</returns>
35 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
36 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
38 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
39 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
40 <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 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Threading.Tasks.ParallelOptions,System.Action{System.Int32})">
43 <summary>Executes a <see langword="for" /> loop in which iterations may run in parallel and loop options can be configured.</summary>
44 <param name="fromInclusive">The start index, inclusive.</param>
45 <param name="toExclusive">The end index, exclusive.</param>
46 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
47 <param name="body">The delegate that is invoked once per iteration.</param>
48 <returns>A structure that contains information about which portion of the loop completed.</returns>
49 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
50 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
52 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
53 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
54 <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>
56 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Action{System.Int64,System.Threading.Tasks.ParallelLoopState})">
57 <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>
58 <param name="fromInclusive">The start index, inclusive.</param>
59 <param name="toExclusive">The end index, exclusive.</param>
60 <param name="body">The delegate that is invoked once per iteration.</param>
61 <returns>A <see cref="T:System.Threading.Tasks.ParallelLoopResult" /> structure that contains information on what portion of the loop completed.</returns>
62 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.</exception>
63 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
65 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Action{System.Int64})">
66 <summary>Executes a <see langword="for" /> loop with 64-bit indexes in which iterations may run in parallel.</summary>
67 <param name="fromInclusive">The start index, inclusive.</param>
68 <param name="toExclusive">The end index, exclusive.</param>
69 <param name="body">The delegate that is invoked once per iteration.</param>
70 <returns>A structure that contains information about which portion of the loop completed.</returns>
71 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.</exception>
72 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
74 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Threading.Tasks.ParallelOptions,System.Action{System.Int64,System.Threading.Tasks.ParallelLoopState})">
75 <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>
76 <param name="fromInclusive">The start index, inclusive.</param>
77 <param name="toExclusive">The end index, exclusive.</param>
78 <param name="parallelOptions">An object that configures the behavior of this operation.</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.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
82 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
84 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
85 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
86 <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>
88 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Threading.Tasks.ParallelOptions,System.Action{System.Int64})">
89 <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>
90 <param name="fromInclusive">The start index, inclusive.</param>
91 <param name="toExclusive">The end index, exclusive.</param>
92 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
93 <param name="body">The delegate that is invoked once per iteration.</param>
94 <returns>A structure that contains information about which portion of the loop completed.</returns>
95 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
96 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
98 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
99 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
100 <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>
102 <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})">
103 <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>
104 <param name="fromInclusive">The start index, inclusive.</param>
105 <param name="toExclusive">The end index, exclusive.</param>
106 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
107 <param name="body">The delegate that is invoked once per iteration.</param>
108 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
109 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
110 <returns>A structure that contains information about which portion of the loop completed.</returns>
111 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
113 The <paramref name="localInit" /> argument is <see langword="null" />.
115 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
116 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
118 <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})">
119 <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>
120 <param name="fromInclusive">The start index, inclusive.</param>
121 <param name="toExclusive">The end index, exclusive.</param>
122 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
123 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
124 <param name="body">The delegate that is invoked once per iteration.</param>
125 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
126 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
127 <returns>A structure that contains information about which portion of the loop completed.</returns>
128 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
130 The <paramref name="localInit" /> argument is <see langword="null" />.
132 The <paramref name="localFinally" /> argument is <see langword="null" />.
134 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
135 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
136 <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>
137 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
139 <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})">
140 <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>
141 <param name="fromInclusive">The start index, inclusive.</param>
142 <param name="toExclusive">The end index, exclusive.</param>
143 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
144 <param name="body">The delegate that is invoked once per iteration.</param>
145 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
146 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
147 <returns>A structure that contains information about which portion of the loop completed.</returns>
148 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
150 The <paramref name="localInit" /> argument is <see langword="null" />.
152 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
153 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
155 <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})">
156 <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>
157 <param name="fromInclusive">The start index, inclusive.</param>
158 <param name="toExclusive">The end index, exclusive.</param>
159 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
160 <param name="localInit">The function delegate that returns the initial state of the local data for each thread.</param>
161 <param name="body">The delegate that is invoked once per iteration.</param>
162 <param name="localFinally">The delegate that performs a final action on the local state of each thread.</param>
163 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
164 <returns>A structure that contains information about which portion of the loop completed.</returns>
165 <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.
167 The <paramref name="localInit" /> argument is <see langword="null" />.
169 The <paramref name="localFinally" /> argument is <see langword="null" />.
171 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
172 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
173 <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>
174 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
176 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.OrderablePartitioner{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState,System.Int64})">
177 <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>
178 <param name="source">The orderable partitioner that contains the original data source.</param>
179 <param name="body">The delegate that is invoked once per iteration.</param>
180 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
181 <returns>A structure that contains information about which portion of the loop completed.</returns>
182 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
184 The <paramref name="body" /> argument is <see langword="null" />.</exception>
185 <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" />.
187 The <see cref="P:System.Collections.Concurrent.OrderablePartitioner`1.KeysNormalized" /> property in the source orderable partitioner returns <see langword="false" />.
189 Any methods in the source orderable partitioner return <see langword="null" />.</exception>
190 <exception cref="T:System.AggregateException">The exception thrown from one of the specified delegates.</exception>
192 <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})">
193 <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>
194 <param name="source">The orderable partitioner that contains the original data source.</param>
195 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
196 <param name="body">The delegate that is invoked once per iteration.</param>
197 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
198 <returns>A structure that contains information about which portion of the loop completed.</returns>
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.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
202 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
204 The <paramref name="body" /> argument is <see langword="null" />.</exception>
205 <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>
206 <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" />.
208 The <see cref="P:System.Collections.Concurrent.OrderablePartitioner`1.KeysNormalized" /> property in the <paramref name="source" /> orderable partitioner returns <see langword="false" />.
210 The exception that is thrown when any methods in the <paramref name="source" /> orderable partitioner return <see langword="null" />.</exception>
211 <exception cref="T:System.AggregateException">The exception that is thrown to contain an exception thrown from one of the specified delegates.</exception>
213 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState})">
214 <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>
215 <param name="source">The partitioner that contains the original data source.</param>
216 <param name="body">The delegate that is invoked once per iteration.</param>
217 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
218 <returns>A structure that contains information about which portion of the loop completed.</returns>
219 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
221 The <paramref name="body" /> argument is <see langword="null" />.</exception>
222 <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" />.
224 A method in the <paramref name="source" /> partitioner returns <see langword="null" />.
226 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>
227 <exception cref="T:System.AggregateException">The exception that is thrown to contain an exception thrown from one of the specified delegates.</exception>
229 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0})">
230 <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>
231 <param name="source">The partitioner that contains the original data source.</param>
232 <param name="body">The delegate that is invoked once per iteration.</param>
233 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
234 <returns>A structure that contains information about which portion of the loop completed.</returns>
235 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
237 The <paramref name="body" /> argument is <see langword="null" />.</exception>
238 <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" />.
240 The exception that is thrown when any methods in the <paramref name="source" /> partitioner return <see langword="null" />.
242 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>
243 <exception cref="T:System.AggregateException">The exception that is thrown to contain an exception thrown from one of the specified delegates.</exception>
245 <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})">
246 <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>
247 <param name="source">The partitioner that contains the original data source.</param>
248 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
249 <param name="body">The delegate that is invoked once per iteration.</param>
250 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
251 <returns>A structure that contains information about which portion of the loop completed.</returns>
252 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
253 <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>
254 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
256 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
258 The <paramref name="body" /> argument is <see langword="null" />.</exception>
259 <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" />.
261 The exception that is thrown when any methods in the <paramref name="source" /> partitioner return <see langword="null" />.</exception>
262 <exception cref="T:System.AggregateException">The exception that is thrown to contain an exception thrown from one of the specified delegates.</exception>
264 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0})">
265 <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>
266 <param name="source">The partitioner that contains the original data source.</param>
267 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
268 <param name="body">The delegate that is invoked once per iteration.</param>
269 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
270 <returns>A structure that contains information about which portion of the loop completed.</returns>
271 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
272 <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>
273 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
275 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
277 The <paramref name="body" /> argument is <see langword="null" />.</exception>
278 <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" />.
280 The exception that is thrown when any methods in the <paramref name="source" /> partitioner return <see langword="null" />.</exception>
281 <exception cref="T:System.AggregateException">The exception that is thrown to contain an exception thrown from one of the specified delegates.</exception>
283 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState,System.Int64})">
284 <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>
285 <param name="source">An enumerable data source.</param>
286 <param name="body">The delegate that is invoked once per iteration.</param>
287 <typeparam name="TSource">The type of the data in the source.</typeparam>
288 <returns>A structure that contains information about which portion of the loop completed.</returns>
289 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
291 The <paramref name="body" /> argument is <see langword="null" />.</exception>
292 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
294 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState})">
295 <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>
296 <param name="source">An enumerable data source.</param>
297 <param name="body">The delegate that is invoked once per iteration.</param>
298 <typeparam name="TSource">The type of the data in the source.</typeparam>
299 <returns>A structure that contains information about which portion of the loop completed.</returns>
300 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
302 The <paramref name="body" /> argument is <see langword="null" />.</exception>
303 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
305 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})">
306 <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>
307 <param name="source">An enumerable data source.</param>
308 <param name="body">The delegate that is invoked once per iteration.</param>
309 <typeparam name="TSource">The type of the data in the source.</typeparam>
310 <returns>A structure that contains information about which portion of the loop completed.</returns>
311 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
313 The <paramref name="body" /> argument is <see langword="null" />.</exception>
314 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
316 <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})">
317 <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>
318 <param name="source">An enumerable data source.</param>
319 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
320 <param name="body">The delegate that is invoked once per iteration.</param>
321 <typeparam name="TSource">The type of the data in the source.</typeparam>
322 <returns>A structure that contains information about which portion of the loop completed.</returns>
323 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled</exception>
324 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
326 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
328 The <paramref name="body" /> argument is <see langword="null" />.</exception>
329 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
330 <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 <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})">
333 <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>
334 <param name="source">An enumerable data source.</param>
335 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
336 <param name="body">The delegate that is invoked once per iteration.</param>
337 <typeparam name="TSource">The type of the data in the source.</typeparam>
338 <returns>A structure that contains information about which portion of the loop completed.</returns>
339 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled</exception>
340 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
342 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
344 The <paramref name="body" /> argument is <see langword="null" />.</exception>
345 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
346 <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>
348 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0})">
349 <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>
350 <param name="source">An enumerable data source.</param>
351 <param name="parallelOptions">An object that configures the behavior of this operation.</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 <returns>A structure that contains information about which portion of the loop completed.</returns>
355 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled</exception>
356 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
358 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
360 The <paramref name="body" /> argument is <see langword="null" />.</exception>
361 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
362 <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>
364 <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})">
365 <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>
366 <param name="source">The orderable partitioner that contains the original data source.</param>
367 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
368 <param name="body">The delegate that is invoked once per iteration.</param>
369 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
370 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
371 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
372 <returns>A structure that contains information about which portion of the loop completed.</returns>
373 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
375 The <paramref name="body" /> argument is <see langword="null" />.
377 The <paramref name="localInit" /> argument is <see langword="null" />.
379 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
380 <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>
381 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
383 <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})">
384 <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>
385 <param name="source">The orderable partitioner that contains the original data source.</param>
386 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
387 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
388 <param name="body">The delegate that is invoked once per iteration.</param>
389 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
390 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
391 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
392 <returns>A structure that contains information about which portion of the loop completed.</returns>
393 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
395 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
397 The <paramref name="body" /> argument is <see langword="null" />.
399 The <paramref name="localInit" /> or <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
400 <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>
401 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
402 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
403 <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>
405 <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})">
406 <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>
407 <param name="source">The partitioner that contains the original data source.</param>
408 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
409 <param name="body">The delegate that is invoked once per iteration.</param>
410 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
411 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
412 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
413 <returns>A structure that contains information about which portion of the loop completed.</returns>
414 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
416 The <paramref name="body" /> argument is <see langword="null" />.
418 The <paramref name="localInit" /> argument is <see langword="null" />.
420 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
421 <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>
422 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
424 <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})">
425 <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>
426 <param name="source">The partitioner that contains the original data source.</param>
427 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
428 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
429 <param name="body">The delegate that is invoked once per iteration.</param>
430 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
431 <typeparam name="TSource">The type of the elements in <paramref name="source" />.</typeparam>
432 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
433 <returns>A structure that contains information about which portion of the loop completed.</returns>
434 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
436 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
438 The <paramref name="body" /> argument is <see langword="null" />.
440 The <paramref name="localInit" /> argument is <see langword="null" />.
442 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
443 <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>
444 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
445 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
446 <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>
448 <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})">
449 <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>
450 <param name="source">An enumerable 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 data in the source.</typeparam>
455 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
456 <returns>A structure that contains information about which portion of the loop completed.</returns>
457 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
459 The <paramref name="body" /> argument is <see langword="null" />.
461 The <paramref name="localInit" /> argument is <see langword="null" />.
463 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
464 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
466 <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})">
467 <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>
468 <param name="source">An enumerable data source.</param>
469 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
470 <param name="body">The delegate that is invoked once per iteration.</param>
471 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
472 <typeparam name="TSource">The type of the data in the source.</typeparam>
473 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
474 <returns>A structure that contains information about which portion of the loop completed.</returns>
475 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
477 The <paramref name="body" /> argument is <see langword="null" />.
479 The <paramref name="localInit" /> argument is <see langword="null" />.
481 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
482 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
484 <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})">
485 <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>
486 <param name="source">An enumerable data source.</param>
487 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
488 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
489 <param name="body">The delegate that is invoked once per iteration.</param>
490 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
491 <typeparam name="TSource">The type of the data in the source.</typeparam>
492 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
493 <returns>A structure that contains information about which portion of the loop completed.</returns>
494 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
496 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
498 The <paramref name="body" /> argument is <see langword="null" />.
500 The <paramref name="localInit" /> argument is <see langword="null" />.
502 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
503 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
504 <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>
505 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
507 <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})">
508 <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>
509 <param name="source">An enumerable data source.</param>
510 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
511 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
512 <param name="body">The delegate that is invoked once per iteration.</param>
513 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
514 <typeparam name="TSource">The type of the data in the source.</typeparam>
515 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
516 <returns>A structure that contains information about which portion of the loop completed.</returns>
517 <exception cref="T:System.ArgumentNullException">The <paramref name="source" /> argument is <see langword="null" />.
519 The <paramref name="parallelOptions" /> argument is <see langword="null" />.
521 The <paramref name="body" /> argument is <see langword="null" />.
523 The <paramref name="localInit" /> argument is <see langword="null" />.
525 The <paramref name="localFinally" /> argument is <see langword="null" />.</exception>
526 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> argument is canceled.</exception>
527 <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>
528 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
530 <member name="M:System.Threading.Tasks.Parallel.Invoke(System.Action[])">
531 <summary>Executes each of the provided actions, possibly in parallel.</summary>
532 <param name="actions">An array of <see cref="T:System.Action" /> to execute.</param>
533 <exception cref="T:System.ArgumentNullException">The <paramref name="actions" /> argument is <see langword="null" />.</exception>
534 <exception cref="T:System.AggregateException">The exception that is thrown when any action in the <paramref name="actions" /> array throws an exception.</exception>
535 <exception cref="T:System.ArgumentException">The <paramref name="actions" /> array contains a <see langword="null" /> element.</exception>
537 <member name="M:System.Threading.Tasks.Parallel.Invoke(System.Threading.Tasks.ParallelOptions,System.Action[])">
538 <summary>Executes each of the provided actions, possibly in parallel, unless the operation is cancelled by the user.</summary>
539 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
540 <param name="actions">An array of actions to execute.</param>
541 <exception cref="T:System.OperationCanceledException">The <see cref="T:System.Threading.CancellationToken" /> in the <paramref name="parallelOptions" /> is set.</exception>
542 <exception cref="T:System.ArgumentNullException">The <paramref name="actions" /> argument is <see langword="null" />.
544 The <paramref name="parallelOptions" /> argument is <see langword="null" />.</exception>
545 <exception cref="T:System.AggregateException">The exception that is thrown when any action in the <paramref name="actions" /> array throws an exception.</exception>
546 <exception cref="T:System.ArgumentException">The <paramref name="actions" /> array contains a <see langword="null" /> element.</exception>
547 <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>
549 <member name="T:System.Threading.Tasks.ParallelLoopResult">
550 <summary>Provides completion status on the execution of a <see cref="T:System.Threading.Tasks.Parallel" /> loop.</summary>
552 <member name="P:System.Threading.Tasks.ParallelLoopResult.IsCompleted">
553 <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>
554 <returns>true if the loop ran to completion; otherwise false;</returns>
556 <member name="P:System.Threading.Tasks.ParallelLoopResult.LowestBreakIteration">
557 <summary>Gets the index of the lowest iteration from which <see cref="M:System.Threading.Tasks.ParallelLoopState.Break" /> was called.</summary>
558 <returns>Returns an integer that represents the lowest iteration from which the Break statement was called.</returns>
560 <member name="T:System.Threading.Tasks.ParallelLoopState">
561 <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>
563 <member name="M:System.Threading.Tasks.ParallelLoopState.Break">
564 <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>
565 <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>
567 <member name="P:System.Threading.Tasks.ParallelLoopState.IsExceptional">
568 <summary>Gets whether any iteration of the loop has thrown an exception that went unhandled by that iteration.</summary>
570 <see langword="true" /> if an unhandled exception was thrown; otherwise, <see langword="false" />.</returns>
572 <member name="P:System.Threading.Tasks.ParallelLoopState.IsStopped">
573 <summary>Gets whether any iteration of the loop has called the <see cref="M:System.Threading.Tasks.ParallelLoopState.Stop" /> method.</summary>
575 <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>
577 <member name="P:System.Threading.Tasks.ParallelLoopState.LowestBreakIteration">
578 <summary>Gets the lowest iteration of the loop from which <see cref="M:System.Threading.Tasks.ParallelLoopState.Break" /> was called.</summary>
579 <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>
581 <member name="P:System.Threading.Tasks.ParallelLoopState.ShouldExitCurrentIteration">
582 <summary>Gets whether the current iteration of the loop should exit based on requests made by this or other iterations.</summary>
584 <see langword="true" /> if the current iteration should exit; otherwise, <see langword="false" />.</returns>
586 <member name="M:System.Threading.Tasks.ParallelLoopState.Stop">
587 <summary>Communicates that the <see cref="T:System.Threading.Tasks.Parallel" /> loop should cease execution at the system's earliest convenience.</summary>
588 <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>
590 <member name="T:System.Threading.Tasks.ParallelOptions">
591 <summary>Stores options that configure the operation of methods on the <see cref="T:System.Threading.Tasks.Parallel" /> class.</summary>
593 <member name="M:System.Threading.Tasks.ParallelOptions.#ctor">
594 <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.ParallelOptions" /> class.</summary>
596 <member name="P:System.Threading.Tasks.ParallelOptions.CancellationToken">
597 <summary>Gets or sets the <see cref="T:System.Threading.CancellationToken" /> associated with this <see cref="T:System.Threading.Tasks.ParallelOptions" /> instance.</summary>
598 <returns>The token that is associated with this instance.</returns>
600 <member name="P:System.Threading.Tasks.ParallelOptions.MaxDegreeOfParallelism">
601 <summary>Gets or sets the maximum number of concurrent tasks enabled by this <see cref="T:System.Threading.Tasks.ParallelOptions" /> instance.</summary>
602 <returns>An integer that represents the maximum degree of parallelism.</returns>
603 <exception cref="T:System.ArgumentOutOfRangeException">The property is being set to zero or to a value that is less than -1.</exception>
605 <member name="P:System.Threading.Tasks.ParallelOptions.TaskScheduler">
606 <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>
607 <returns>The task scheduler that is associated with this instance.</returns>