1 <?xml version="1.0" encoding="utf-8"?><doc>
3 <name>System.Threading.Tasks.Parallel</name>
6 <member name="T:System.Threading.Tasks.Parallel">
7 <summary>Provides support for parallel loops and regions.</summary>
9 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Action{System.Int32,System.Threading.Tasks.ParallelLoopState})">
10 <summary>Executes a for (For in Visual Basic) loop in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
11 <param name="fromInclusive">The start index, inclusive.</param>
12 <param name="toExclusive">The end index, exclusive.</param>
13 <param name="body">The delegate that is invoked once per iteration.</param>
14 <returns>A structure that contains information about which portion of the loop completed.</returns>
15 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.</exception>
16 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
18 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Action{System.Int32})">
19 <summary>Executes a for (For in Visual Basic) loop in which iterations may run in parallel.</summary>
20 <param name="fromInclusive">The start index, inclusive.</param>
21 <param name="toExclusive">The end index, exclusive.</param>
22 <param name="body">The delegate that is invoked once per iteration.</param>
23 <returns>A structure that contains information about which portion of the loop completed.</returns>
24 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.</exception>
25 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
27 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Action{System.Int64,System.Threading.Tasks.ParallelLoopState})">
28 <summary>Executes a for (For in Visual Basic) loop with 64-bit indexes in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
29 <param name="fromInclusive">The start index, inclusive.</param>
30 <param name="toExclusive">The end index, exclusive.</param>
31 <param name="body">The delegate that is invoked once per iteration.</param>
32 <returns>A <see cref="System.Threading.Tasks.ParallelLoopResult"></see> structure that contains information on what portion of the loop completed.</returns>
33 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.</exception>
34 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
36 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Action{System.Int64})">
37 <summary>Executes a for (For in Visual Basic) loop with 64-bit indexes in which iterations may run in parallel.</summary>
38 <param name="fromInclusive">The start index, inclusive.</param>
39 <param name="toExclusive">The end index, exclusive.</param>
40 <param name="body">The delegate that is invoked once per iteration.</param>
41 <returns>A structure that contains information about which portion of the loop completed.</returns>
42 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.</exception>
43 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
45 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Threading.Tasks.ParallelOptions,System.Action{System.Int32,System.Threading.Tasks.ParallelLoopState})">
46 <summary>Executes a for (For in Visual Basic) loop in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
47 <param name="fromInclusive">The start index, inclusive.</param>
48 <param name="toExclusive">The end index, exclusive.</param>
49 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
50 <param name="body">The delegate that is invoked once per iteration.</param>
51 <returns>A structure that contains information about which portion of the loop completed.</returns>
52 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
53 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.
55 The <paramref name="parallelOptions">parallelOptions</paramref> argument is 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="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
59 <member name="M:System.Threading.Tasks.Parallel.For(System.Int32,System.Int32,System.Threading.Tasks.ParallelOptions,System.Action{System.Int32})">
60 <summary>Executes a for (For in Visual Basic) loop in which iterations may run in parallel and loop options can be configured.</summary>
61 <param name="fromInclusive">The start index, inclusive.</param>
62 <param name="toExclusive">The end index, exclusive.</param>
63 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
64 <param name="body">The delegate that is invoked once per iteration.</param>
65 <returns>A structure that contains information about which portion of the loop completed.</returns>
66 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
67 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.
69 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.</exception>
70 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
71 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
73 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Threading.Tasks.ParallelOptions,System.Action{System.Int64,System.Threading.Tasks.ParallelLoopState})">
74 <summary>Executes a for (For in Visual Basic) loop with 64-bit indexes in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
75 <param name="fromInclusive">The start index, inclusive.</param>
76 <param name="toExclusive">The end index, exclusive.</param>
77 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
78 <param name="body">The delegate that is invoked once per iteration.</param>
79 <returns>A structure that contains information about which portion of the loop completed.</returns>
80 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
81 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.
83 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.</exception>
84 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
85 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
87 <member name="M:System.Threading.Tasks.Parallel.For(System.Int64,System.Int64,System.Threading.Tasks.ParallelOptions,System.Action{System.Int64})">
88 <summary>Executes a for (For in Visual Basic) loop with 64-bit indexes in which iterations may run in parallel and loop options can be configured.</summary>
89 <param name="fromInclusive">The start index, inclusive.</param>
90 <param name="toExclusive">The end index, exclusive.</param>
91 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
92 <param name="body">The delegate that is invoked once per iteration.</param>
93 <returns>A structure that contains information about which portion of the loop completed.</returns>
94 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
95 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.
97 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.</exception>
98 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
99 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
101 <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})">
102 <summary>Executes a for (For in Visual Basic) loop with 64-bit indexes and thread-local data in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
103 <param name="fromInclusive">The start index, inclusive.</param>
104 <param name="toExclusive">The end index, exclusive.</param>
105 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
106 <param name="localInit">The function delegate that returns the initial state of the local data for each thread.</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 thread.</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">body</paramref> argument is null.
113 The <paramref name="localInit">localInit</paramref> argument is null.
115 The <paramref name="localFinally">localFinally</paramref> argument is null.
117 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.</exception>
118 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
119 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
120 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
122 <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})">
123 <summary>Executes a for (For in Visual Basic) loop with thread-local data in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
124 <param name="fromInclusive">The start index, inclusive.</param>
125 <param name="toExclusive">The end index, exclusive.</param>
126 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
127 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
128 <param name="body">The delegate that is invoked once per iteration.</param>
129 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
130 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
131 <returns>A structure that contains information about which portion of the loop completed.</returns>
132 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.
134 The <paramref name="localInit">localInit</paramref> argument is null.
136 The <paramref name="localFinally">localFinally</paramref> argument is null.
138 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.</exception>
139 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
140 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
141 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
143 <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})">
144 <summary>Executes a for (For in Visual Basic) loop with thread-local data in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
145 <param name="fromInclusive">The start index, inclusive.</param>
146 <param name="toExclusive">The end index, exclusive.</param>
147 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
148 <param name="body">The delegate that is invoked once per iteration.</param>
149 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
150 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
151 <returns>A structure that contains information about which portion of the loop completed.</returns>
152 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.
154 The <paramref name="localInit">localInit</paramref> argument is null.
156 The <paramref name="localFinally">localFinally</paramref> argument is null.</exception>
157 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
159 <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})">
160 <summary>Executes a for (For in Visual Basic) loop with 64-bit indexes and thread-local data in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
161 <param name="fromInclusive">The start index, inclusive.</param>
162 <param name="toExclusive">The end index, exclusive.</param>
163 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
164 <param name="body">The delegate that is invoked once per iteration.</param>
165 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
166 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
167 <returns>A structure that contains information about which portion of the loop completed.</returns>
168 <exception cref="T:System.ArgumentNullException">The <paramref name="body">body</paramref> argument is null.
170 The <paramref name="localInit">localInit</paramref> argument is null.
172 The <paramref name="localFinally">localFinally</paramref> argument is null.</exception>
173 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
175 <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})">
176 <summary>Executes a foreach (For Each in Visual Basic) operation with thread-local data on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated..</summary>
177 <param name="source">An enumerable data source.</param>
178 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
179 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
180 <param name="body">The delegate that is invoked once per iteration.</param>
181 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
182 <typeparam name="TSource">The type of the data in the source.</typeparam>
183 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
184 <returns>A structure that contains information about which portion of the loop completed.</returns>
185 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
187 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.
189 The <paramref name="body">body</paramref> argument is null.
191 The <paramref name="localInit">localInit</paramref> argument is null.
193 The <paramref name="localFinally">localFinally</paramref> argument is null.</exception>
194 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
195 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
196 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
198 <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})">
199 <summary>Executes a foreach (For Each in Visual Basic) operation with thread-local data and 64-bit indexes on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
200 <param name="source">An enumerable data source.</param>
201 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
202 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
203 <param name="body">The delegate that is invoked once per iteration.</param>
204 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
205 <typeparam name="TSource">The type of the data in the source.</typeparam>
206 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
207 <returns>A structure that contains information about which portion of the loop completed.</returns>
208 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
210 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.
212 The <paramref name="body">body</paramref> argument is null.
214 The <paramref name="localInit">localInit</paramref> argument is null.
216 The <paramref name="localFinally">localFinally</paramref> argument is null.</exception>
217 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
218 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
219 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
221 <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})">
222 <summary>Executes a foreach (For Each in Visual Basic) operation with thread-local data on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
223 <param name="source">The partitioner that contains the original data source.</param>
224 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
225 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
226 <param name="body">The delegate that is invoked once per iteration.</param>
227 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
228 <typeparam name="TSource">The type of the elements in source.</typeparam>
229 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
230 <returns>A structure that contains information about which portion of the loop completed.</returns>
231 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
233 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.
235 The <paramref name="body">body</paramref> argument is null.
237 The <paramref name="localInit">localInit</paramref> argument is null.
239 The <paramref name="localFinally">localFinally</paramref> argument is null.</exception>
240 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref><see cref="System.Collections.Concurrent.Partitioner"></see> returns false or the partitioner returns null partitions.</exception>
241 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
242 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
243 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
245 <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})">
246 <summary>Executes a foreach (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"></see> in which iterations may run in parallel , loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
247 <param name="source">The orderable 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="localInit">The function delegate that returns the initial state of the local data for each task.</param>
250 <param name="body">The delegate that is invoked once per iteration.</param>
251 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
252 <typeparam name="TSource">The type of the elements in source.</typeparam>
253 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
254 <returns>A structure that contains information about which portion of the loop completed.</returns>
255 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
257 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.
259 The <paramref name="body">body</paramref> argument is null.
261 The <paramref name="localInit">localInit</paramref> or <paramref name="localFinally">localFinally</paramref> argument is null.</exception>
262 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref><see cref="System.Collections.Concurrent.Partitioner"></see> returns false or the partitioner returns null partitions.</exception>
263 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
264 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
265 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
267 <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})">
268 <summary>Executes a foreach (For Each in Visual Basic) operation with thread-local data on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
269 <param name="source">An enumerable data source.</param>
270 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
271 <param name="body">The delegate that is invoked once per iteration.</param>
272 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
273 <typeparam name="TSource">The type of the data in the source.</typeparam>
274 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
275 <returns>A structure that contains information about which portion of the loop completed.</returns>
276 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
278 The <paramref name="body">body</paramref> argument is null.
280 The <paramref name="localInit">localInit</paramref> argument is null.
282 The <paramref name="localFinally">localFinally</paramref> argument is null.</exception>
283 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
285 <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})">
286 <summary>Executes a foreach (For Each in Visual Basic) operation with thread-local data on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
287 <param name="source">An enumerable data source.</param>
288 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
289 <param name="body">The delegate that is invoked once per iteration.</param>
290 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
291 <typeparam name="TSource">The type of the data in the source.</typeparam>
292 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
293 <returns>A structure that contains information about which portion of the loop completed.</returns>
294 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
296 The <paramref name="body">body</paramref> argument is null.
298 The <paramref name="localInit">localInit</paramref> argument is null.
300 The <paramref name="localFinally">localFinally</paramref> argument is null.</exception>
301 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
303 <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})">
304 <summary>Executes a foreach (For Each in Visual Basic) operation with thread-local data on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
305 <param name="source">The partitioner that contains the original data source.</param>
306 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
307 <param name="body">The delegate that is invoked once per iteration.</param>
308 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
309 <typeparam name="TSource">The type of the elements in source.</typeparam>
310 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
311 <returns>A structure that contains information about which portion of the loop completed.</returns>
312 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
314 The <paramref name="body">body</paramref> argument is null.
316 The <paramref name="localInit">localInit</paramref> argument is null.
318 The <paramref name="localFinally">localFinally</paramref> argument is null.</exception>
319 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref><see cref="System.Collections.Concurrent.Partitioner"></see> returns false or the partitioner returns null partitions.</exception>
320 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
322 <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})">
323 <summary>Executes a foreach (For Each in Visual Basic) operation with thread-local data on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
324 <param name="source">The orderable partitioner that contains the original data source.</param>
325 <param name="localInit">The function delegate that returns the initial state of the local data for each task.</param>
326 <param name="body">The delegate that is invoked once per iteration.</param>
327 <param name="localFinally">The delegate that performs a final action on the local state of each task.</param>
328 <typeparam name="TSource">The type of the elements in source.</typeparam>
329 <typeparam name="TLocal">The type of the thread-local data.</typeparam>
330 <returns>A structure that contains information about which portion of the loop completed.</returns>
331 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
333 The <paramref name="body">body</paramref> argument is null.
335 The <paramref name="localInit">localInit</paramref> argument is null.
337 The <paramref name="localFinally">localFinally</paramref> argument is null.</exception>
338 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref><see cref="System.Collections.Concurrent.Partitioner"></see> returns false or the partitioner returns null partitions.</exception>
339 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
341 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0})">
342 <summary>Executes a foreach (For Each in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel and loop options can be configured.</summary>
343 <param name="source">An enumerable data source.</param>
344 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
345 <param name="body">The delegate that is invoked once per iteration.</param>
346 <typeparam name="TSource">The type of the data in the source.</typeparam>
347 <returns>A structure that contains information about which portion of the loop completed.</returns>
348 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled</exception>
349 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
351 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.
353 The <paramref name="body">body</paramref> argument is null.</exception>
354 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
355 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
357 <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})">
358 <summary>Executes a foreach (For Each in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
359 <param name="source">An enumerable data source.</param>
360 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
361 <param name="body">The delegate that is invoked once per iteration.</param>
362 <typeparam name="TSource">The type of the data in the source.</typeparam>
363 <returns>A structure that contains information about which portion of the loop completed.</returns>
364 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled</exception>
365 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
367 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.
369 The <paramref name="body">body</paramref> argument is null.</exception>
370 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
371 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
373 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState})">
374 <summary>Executes a foreach (For Each in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
375 <param name="source">An enumerable data source.</param>
376 <param name="body">The delegate that is invoked once per iteration.</param>
377 <typeparam name="TSource">The type of the data in the source.</typeparam>
378 <returns>A structure that contains information about which portion of the loop completed.</returns>
379 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
381 The <paramref name="body">body</paramref> argument is null.</exception>
382 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
384 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Threading.Tasks.ParallelOptions,System.Action{``0})">
385 <summary>Executes a foreach (For Each in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel and loop options can be configured.</summary>
386 <param name="source">The partitioner that contains the original data source.</param>
387 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
388 <param name="body">The delegate that is invoked once per iteration.</param>
389 <typeparam name="TSource">The type of the elements in source.</typeparam>
390 <returns>A structure that contains information about which portion of the loop completed.</returns>
391 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
392 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
393 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
395 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.
397 The <paramref name="body">body</paramref> argument is null.</exception>
398 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> partitioner returns false.
400 The exception that is thrown when any methods in the <paramref name="source">source</paramref> partitioner return null.</exception>
402 <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})">
403 <summary>Executes a foreach (For Each in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
404 <param name="source">The partitioner that contains the original data source.</param>
405 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
406 <param name="body">The delegate that is invoked once per iteration.</param>
407 <typeparam name="TSource">The type of the elements in source.</typeparam>
408 <returns>A structure that contains information about which portion of the loop completed.</returns>
409 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled.</exception>
410 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
411 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
413 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.
415 The <paramref name="body">body</paramref> argument is null.</exception>
416 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> partitioner returns false.
418 The exception that is thrown when any methods in the <paramref name="source">source</paramref> partitioner return null.</exception>
420 <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})">
421 <summary>Executes a foreach (For Each in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
422 <param name="source">The orderable partitioner that contains the original data source.</param>
423 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
424 <param name="body">The delegate that is invoked once per iteration.</param>
425 <typeparam name="TSource">The type of the elements in source.</typeparam>
426 <returns>A structure that contains information about which portion of the loop completed.</returns>
427 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled</exception>
428 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
430 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.
432 The <paramref name="body">body</paramref> argument is null.</exception>
433 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
434 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> orderable partitioner returns false.
436 The <see cref="System.Collections.Concurrent.OrderablePartitioner`1.KeysNormalized"></see> property in the <paramref name="source">source</paramref> orderable partitioner returns false.
438 The exception that is thrown when any methods in the <paramref name="source">source</paramref> orderable partitioner return null.</exception>
440 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})">
441 <summary>Executes a foreach (For Each in Visual Basic) operation on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel.</summary>
442 <param name="source">An enumerable data source.</param>
443 <param name="body">The delegate that is invoked once per iteration.</param>
444 <typeparam name="TSource">The type of the data in the source.</typeparam>
445 <returns>A structure that contains information about which portion of the loop completed.</returns>
446 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
448 The <paramref name="body">body</paramref> argument is null.</exception>
449 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
451 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState,System.Int64})">
452 <summary>Executes a foreach (For Each in Visual Basic) operation with 64-bit indexes on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
453 <param name="source">An enumerable data source.</param>
454 <param name="body">The delegate that is invoked once per iteration.</param>
455 <typeparam name="TSource">The type of the data in the source.</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">source</paramref> argument is null.
459 The <paramref name="body">body</paramref> argument is null.</exception>
460 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
462 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0})">
463 <summary>Executes a foreach (For Each in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel.</summary>
464 <param name="source">The partitioner that contains the original data source.</param>
465 <param name="body">The delegate that is invoked once per iteration.</param>
466 <typeparam name="TSource">The type of the elements in source.</typeparam>
467 <returns>A structure that contains information about which portion of the loop completed.</returns>
468 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
470 The <paramref name="body">body</paramref> argument is null.</exception>
471 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> partitioner returns false.
473 The exception that is thrown when any methods in the <paramref name="source">source</paramref> partitioner return null.
475 The <see cref="System.Collections.Concurrent.Partitioner`1.GetPartitions(System.Int32)"></see> method in the <paramref name="source">source</paramref> partitioner does not return the correct number of partitions.</exception>
477 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState})">
478 <summary>Executes a foreach (For Each in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.Partitioner"></see> in which iterations may run in parallel, and the state of the loop can be monitored and manipulated.</summary>
479 <param name="source">The partitioner that contains the original data source.</param>
480 <param name="body">The delegate that is invoked once per iteration.</param>
481 <typeparam name="TSource">The type of the elements in source.</typeparam>
482 <returns>A structure that contains information about which portion of the loop completed.</returns>
483 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
485 The <paramref name="body">body</paramref> argument is null.</exception>
486 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> partitioner returns false.
488 A method in the <paramref name="source">source</paramref> partitioner returns null.
490 The <see cref="System.Collections.Concurrent.Partitioner`1.GetPartitions(System.Int32)"></see> method in the <paramref name="source">source</paramref> partitioner does not return the correct number of partitions.</exception>
492 <member name="M:System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.OrderablePartitioner{``0},System.Action{``0,System.Threading.Tasks.ParallelLoopState,System.Int64})">
493 <summary>Executes a foreach (For Each in Visual Basic) operation on a <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1"></see> in which iterations may run in parallel and the state of the loop can be monitored and manipulated.</summary>
494 <param name="source">The orderable partitioner that contains the original data source.</param>
495 <param name="body">The delegate that is invoked once per iteration.</param>
496 <typeparam name="TSource">The type of the elements in source.</typeparam>
497 <returns>A structure that contains information about which portion of the loop completed.</returns>
498 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
500 The <paramref name="body">body</paramref> argument is null.</exception>
501 <exception cref="T:System.InvalidOperationException">The <see cref="System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions"></see> property in the <paramref name="source">source</paramref> orderable partitioner returns false.
503 The <see cref="System.Collections.Concurrent.OrderablePartitioner`1.KeysNormalized"></see> property in the source orderable partitioner returns false.
505 Any methods in the source orderable partitioner return null.</exception>
507 <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})">
508 <summary>Executes a foreach (For Each in Visual Basic) operation with 64-bit indexes on an <see cref="T:System.Collections.IEnumerable"></see> in which iterations may run in parallel, loop options can be configured, and the state of the loop can be monitored and manipulated.</summary>
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="body">The delegate that is invoked once per iteration.</param>
512 <typeparam name="TSource">The type of the data in the source.</typeparam>
513 <returns>A structure that contains information about which portion of the loop completed.</returns>
514 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> argument is canceled</exception>
515 <exception cref="T:System.ArgumentNullException">The <paramref name="source">source</paramref> argument is null.
517 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.
519 The <paramref name="body">body</paramref> argument is null.</exception>
520 <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
521 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
523 <member name="M:System.Threading.Tasks.Parallel.Invoke(System.Action[])">
524 <summary>Executes each of the provided actions, possibly in parallel.</summary>
525 <param name="actions">An array of <see cref="T:System.Action"></see> to execute.</param>
526 <exception cref="T:System.ArgumentNullException">The <paramref name="actions">actions</paramref> argument is null.</exception>
527 <exception cref="T:System.AggregateException">The exception that is thrown when any action in the <paramref name="actions">actions</paramref> array throws an exception.</exception>
528 <exception cref="T:System.ArgumentException">The <paramref name="actions">actions</paramref> array contains a null element.</exception>
530 <member name="M:System.Threading.Tasks.Parallel.Invoke(System.Threading.Tasks.ParallelOptions,System.Action[])">
531 <summary>Executes each of the provided actions, possibly in parallel, unless the operation is cancelled by the user.</summary>
532 <param name="parallelOptions">An object that configures the behavior of this operation.</param>
533 <param name="actions">An array of actions to execute.</param>
534 <exception cref="T:System.OperationCanceledException">The <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> is set.</exception>
535 <exception cref="T:System.ArgumentNullException">The <paramref name="actions">actions</paramref> argument is null.
537 The <paramref name="parallelOptions">parallelOptions</paramref> argument is null.</exception>
538 <exception cref="T:System.AggregateException">The exception that is thrown when any action in the <paramref name="actions">actions</paramref> array throws an exception.</exception>
539 <exception cref="T:System.ArgumentException">The <paramref name="actions">actions</paramref> array contains a null element.</exception>
540 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.CancellationTokenSource"></see> associated with the <see cref="System.Threading.CancellationToken"></see> in the <paramref name="parallelOptions">parallelOptions</paramref> has been disposed.</exception>
542 <member name="T:System.Threading.Tasks.ParallelLoopResult">
543 <summary>Provides completion status on the execution of a <see cref="T:System.Threading.Tasks.Parallel"></see> loop.</summary>
545 <member name="P:System.Threading.Tasks.ParallelLoopResult.IsCompleted">
546 <summary>Gets whether the loop ran to completion, such that all iterations of the loop were executed and the loop didn&#39;t receive a request to end prematurely.</summary>
547 <returns>true if the loop ran to completion; otherwise false;</returns>
549 <member name="P:System.Threading.Tasks.ParallelLoopResult.LowestBreakIteration">
550 <summary>Gets the index of the lowest iteration from which <see cref="M:System.Threading.Tasks.ParallelLoopState.Break"></see> was called.</summary>
551 <returns>Returns an integer that represents the lowest iteration from which the Break statement was called.</returns>
553 <member name="T:System.Threading.Tasks.ParallelLoopState">
554 <summary>Enables iterations of parallel loops to interact with other iterations. An instance of this class is provided by the <see cref="T:System.Threading.Tasks.Parallel"></see> class to each loop; you can not create instances in your code.</summary>
556 <member name="M:System.Threading.Tasks.ParallelLoopState.Break">
557 <summary>Communicates that the <see cref="T:System.Threading.Tasks.Parallel"></see> loop should cease execution of iterations beyond the current iteration at the system&#39;s earliest convenience.</summary>
558 <exception cref="T:System.InvalidOperationException">The <see cref="System.Threading.Tasks.ParallelLoopState.Stop"></see> method was previously called. <see cref="System.Threading.Tasks.ParallelLoopState.Break"></see> and <see cref="System.Threading.Tasks.ParallelLoopState.Stop"></see> may not be used in combination by iterations of the same loop.</exception>
560 <member name="P:System.Threading.Tasks.ParallelLoopState.IsExceptional">
561 <summary>Gets whether any iteration of the loop has thrown an exception that went unhandled by that iteration.</summary>
562 <returns>true if an unhandled exception was thrown; otherwise, false.</returns>
564 <member name="P:System.Threading.Tasks.ParallelLoopState.IsStopped">
565 <summary>Gets whether any iteration of the loop has called the <see cref="M:System.Threading.Tasks.ParallelLoopState.Stop"></see> method.</summary>
566 <returns>true if any iteration has stopped the loop by calling the <see cref="System.Threading.Tasks.ParallelLoopState.Stop"></see> method; otherwise, false.</returns>
568 <member name="P:System.Threading.Tasks.ParallelLoopState.LowestBreakIteration">
569 <summary>Gets the lowest iteration of the loop from which <see cref="M:System.Threading.Tasks.ParallelLoopState.Break"></see> was called.</summary>
570 <returns>The lowest iteration from which <see cref="System.Threading.Tasks.ParallelLoopState.Break"></see> was called. In the case of a <see cref="System.Threading.Tasks.Parallel.ForEach``1(System.Collections.Concurrent.Partitioner{``0},System.Action{``0})"></see> loop, the value is based on an internally-generated index.</returns>
572 <member name="P:System.Threading.Tasks.ParallelLoopState.ShouldExitCurrentIteration">
573 <summary>Gets whether the current iteration of the loop should exit based on requests made by this or other iterations.</summary>
574 <returns>true if the current iteration should exit; otherwise, false.</returns>
576 <member name="M:System.Threading.Tasks.ParallelLoopState.Stop">
577 <summary>Communicates that the <see cref="T:System.Threading.Tasks.Parallel"></see> loop should cease execution at the system&#39;s earliest convenience.</summary>
578 <exception cref="T:System.InvalidOperationException">The <see cref="System.Threading.Tasks.ParallelLoopState.Break"></see> method was called previously. <see cref="System.Threading.Tasks.ParallelLoopState.Break"></see> and <see cref="System.Threading.Tasks.ParallelLoopState.Stop"></see> may not be used in combination by iterations of the same loop.</exception>
580 <member name="T:System.Threading.Tasks.ParallelOptions">
581 <summary>Stores options that configure the operation of methods on the <see cref="T:System.Threading.Tasks.Parallel"></see> class.</summary>
583 <member name="M:System.Threading.Tasks.ParallelOptions.#ctor">
584 <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.ParallelOptions"></see> class.</summary>
586 <member name="P:System.Threading.Tasks.ParallelOptions.CancellationToken">
587 <summary>Gets or sets the <see cref="T:System.Threading.CancellationToken"></see> associated with this <see cref="T:System.Threading.Tasks.ParallelOptions"></see> instance.</summary>
588 <returns>The token that is associated with this instance.</returns>
590 <member name="P:System.Threading.Tasks.ParallelOptions.MaxDegreeOfParallelism">
591 <summary>Gets or sets the maximum number of concurrent tasks enabled by this <see cref="T:System.Threading.Tasks.ParallelOptions"></see> instance.</summary>
592 <returns>An integer that represents the maximum degree of parallelism.</returns>
593 <exception cref="T:System.ArgumentOutOfRangeException">The property is being set to zero or to a value that is less than -1.</exception>
595 <member name="P:System.Threading.Tasks.ParallelOptions.TaskScheduler">
596 <summary>Gets or sets the <see cref="T:System.Threading.Tasks.TaskScheduler"></see> associated with this <see cref="T:System.Threading.Tasks.ParallelOptions"></see> instance. Setting this property to null indicates that the current scheduler should be used.</summary>
597 <returns>The task scheduler that is associated with this instance.</returns>