Debian Codegraph @

external/rx/Rx/NET/Source/packages/Microsoft.Bcl.1.0.19/lib/portable-net40+sl4+win8/System.Threading.Tasks.xml

raw
1 <?xml version="1.0"?>
2 <doc>
3 <assembly>
4 <name>System.Threading.Tasks</name>
5 </assembly>
6 <members>
7 <member name="T:System.AggregateException">
8 <summary>Represents one or more errors that occur during application execution.</summary>
9 <remarks>
10 <see cref="T:System.AggregateException"/> is used to consolidate multiple failures into a single, throwable
11 exception object.
12 </remarks>
13 </member>
14 <member name="M:System.AggregateException.#ctor">
15 <summary>
16 Initializes a new instance of the <see cref="T:System.AggregateException"/> class.
17 </summary>
18 </member>
19 <member name="M:System.AggregateException.#ctor(System.String)">
20 <summary>
21 Initializes a new instance of the <see cref="T:System.AggregateException"/> class with
22 a specified error message.
23 </summary>
24 <param name="message">The error message that explains the reason for the exception.</param>
25 </member>
26 <member name="M:System.AggregateException.#ctor(System.String,System.Exception)">
27 <summary>
28 Initializes a new instance of the <see cref="T:System.AggregateException"/> class with a specified error
29 message and a reference to the inner exception that is the cause of this exception.
30 </summary>
31 <param name="message">The error message that explains the reason for the exception.</param>
32 <param name="innerException">The exception that is the cause of the current exception.</param>
33 <exception cref="T:System.ArgumentNullException">The <paramref name="innerException"/> argument
34 is null.</exception>
35 </member>
36 <member name="M:System.AggregateException.#ctor(System.Collections.Generic.IEnumerable{System.Exception})">
37 <summary>
38 Initializes a new instance of the <see cref="T:System.AggregateException"/> class with
39 references to the inner exceptions that are the cause of this exception.
40 </summary>
41 <param name="innerExceptions">The exceptions that are the cause of the current exception.</param>
42 <exception cref="T:System.ArgumentNullException">The <paramref name="innerExceptions"/> argument
43 is null.</exception>
44 <exception cref="T:System.ArgumentException">An element of <paramref name="innerExceptions"/> is
45 null.</exception>
46 </member>
47 <member name="M:System.AggregateException.#ctor(System.Exception[])">
48 <summary>
49 Initializes a new instance of the <see cref="T:System.AggregateException"/> class with
50 references to the inner exceptions that are the cause of this exception.
51 </summary>
52 <param name="innerExceptions">The exceptions that are the cause of the current exception.</param>
53 <exception cref="T:System.ArgumentNullException">The <paramref name="innerExceptions"/> argument
54 is null.</exception>
55 <exception cref="T:System.ArgumentException">An element of <paramref name="innerExceptions"/> is
56 null.</exception>
57 </member>
58 <member name="M:System.AggregateException.#ctor(System.String,System.Collections.Generic.IEnumerable{System.Exception})">
59 <summary>
60 Initializes a new instance of the <see cref="T:System.AggregateException"/> class with a specified error
61 message and references to the inner exceptions that are the cause of this exception.
62 </summary>
63 <param name="message">The error message that explains the reason for the exception.</param>
64 <param name="innerExceptions">The exceptions that are the cause of the current exception.</param>
65 <exception cref="T:System.ArgumentNullException">The <paramref name="innerExceptions"/> argument
66 is null.</exception>
67 <exception cref="T:System.ArgumentException">An element of <paramref name="innerExceptions"/> is
68 null.</exception>
69 </member>
70 <member name="M:System.AggregateException.#ctor(System.String,System.Exception[])">
71 <summary>
72 Initializes a new instance of the <see cref="T:System.AggregateException"/> class with a specified error
73 message and references to the inner exceptions that are the cause of this exception.
74 </summary>
75 <param name="message">The error message that explains the reason for the exception.</param>
76 <param name="innerExceptions">The exceptions that are the cause of the current exception.</param>
77 <exception cref="T:System.ArgumentNullException">The <paramref name="innerExceptions"/> argument
78 is null.</exception>
79 <exception cref="T:System.ArgumentException">An element of <paramref name="innerExceptions"/> is
80 null.</exception>
81 </member>
82 <member name="M:System.AggregateException.#ctor(System.String,System.Collections.Generic.IList{System.Exception})">
83 <summary>
84 Allocates a new aggregate exception with the specified message and list of inner exceptions.
85 </summary>
86 <param name="message">The error message that explains the reason for the exception.</param>
87 <param name="innerExceptions">The exceptions that are the cause of the current exception.</param>
88 <exception cref="T:System.ArgumentNullException">The <paramref name="innerExceptions"/> argument
89 is null.</exception>
90 <exception cref="T:System.ArgumentException">An element of <paramref name="innerExceptions"/> is
91 null.</exception>
92 </member>
93 <member name="M:System.AggregateException.GetBaseException">
94 <summary>
95 Returns the <see cref="T:System.AggregateException"/> that is the root cause of this exception.
96 </summary>
97 </member>
98 <member name="M:System.AggregateException.Handle(System.Func{System.Exception,System.Boolean})">
99 <summary>
100 Invokes a handler on each <see cref="T:System.Exception"/> contained by this <see cref="T:System.AggregateException"/>.
101 </summary>
102 <param name="predicate">The predicate to execute for each exception. The predicate accepts as an
103 argument the <see cref="T:System.Exception"/> to be processed and returns a Boolean to indicate
104 whether the exception was handled.</param>
105 <remarks>
106 Each invocation of the <paramref name="predicate"/> returns true or false to indicate whether the
107 <see cref="T:System.Exception"/> was handled. After all invocations, if any exceptions went
108 unhandled, all unhandled exceptions will be put into a new <see cref="T:System.AggregateException"/>
109 which will be thrown. Otherwise, the <see cref="M:System.AggregateException.Handle(System.Func{System.Exception,System.Boolean})"/> method simply returns. If any
110 invocations of the <paramref name="predicate"/> throws an exception, it will halt the processing
111 of any more exceptions and immediately propagate the thrown exception as-is.
112 </remarks>
113 <exception cref="T:System.AggregateException">An exception contained by this <see cref="T:System.AggregateException"/> was not handled.</exception>
114 <exception cref="T:System.ArgumentNullException">The <paramref name="predicate"/> argument is
115 null.</exception>
116 </member>
117 <member name="M:System.AggregateException.Flatten">
118 <summary>
119 Flattens an <see cref="T:System.AggregateException"/> instances into a single, new instance.
120 </summary>
121 <returns>A new, flattened <see cref="T:System.AggregateException"/>.</returns>
122 <remarks>
123 If any inner exceptions are themselves instances of
124 <see cref="T:System.AggregateException"/>, this method will recursively flatten all of them. The
125 inner exceptions returned in the new <see cref="T:System.AggregateException"/>
126 will be the union of all of the the inner exceptions from exception tree rooted at the provided
127 <see cref="T:System.AggregateException"/> instance.
128 </remarks>
129 </member>
130 <member name="M:System.AggregateException.ToString">
131 <summary>
132 Creates and returns a string representation of the current <see cref="T:System.AggregateException"/>.
133 </summary>
134 <returns>A string representation of the current exception.</returns>
135 </member>
136 <member name="P:System.AggregateException.InnerExceptions">
137 <summary>
138 Gets a read-only collection of the <see cref="T:System.Exception"/> instances that caused the
139 current exception.
140 </summary>
141 </member>
142 <member name="T:System.Strings">
143 <summary>
144 A strongly-typed resource class, for looking up localized strings, etc.
145 </summary>
146 </member>
147 <member name="P:System.Strings.ResourceManager">
148 <summary>
149 Returns the cached ResourceManager instance used by this class.
150 </summary>
151 </member>
152 <member name="P:System.Strings.Culture">
153 <summary>
154 Overrides the current thread's CurrentUICulture property for all
155 resource lookups using this strongly typed resource class.
156 </summary>
157 </member>
158 <member name="P:System.Strings.AggregateException_ctor_DefaultMessage">
159 <summary>
160 Looks up a localized string similar to One or more errors occurred..
161 </summary>
162 </member>
163 <member name="P:System.Strings.AggregateException_ctor_InnerExceptionNull">
164 <summary>
165 Looks up a localized string similar to An element of innerExceptions was null..
166 </summary>
167 </member>
168 <member name="P:System.Strings.AggregateException_ToString">
169 <summary>
170 Looks up a localized string similar to {0}{1}---&gt; (Inner Exception #{2}) {3}{4}{5}.
171 </summary>
172 </member>
173 <member name="P:System.Strings.CancellationToken_CreateLinkedToken_TokensIsEmpty">
174 <summary>
175 Looks up a localized string similar to No tokens were supplied..
176 </summary>
177 </member>
178 <member name="P:System.Strings.CancellationToken_SourceDisposed">
179 <summary>
180 Looks up a localized string similar to The CancellationTokenSource associated with this CancellationToken has been disposed..
181 </summary>
182 </member>
183 <member name="P:System.Strings.CancellationTokenSource_Disposed">
184 <summary>
185 Looks up a localized string similar to The CancellationTokenSource has been disposed..
186 </summary>
187 </member>
188 <member name="P:System.Strings.ConcurrentCollection_SyncRoot_NotSupported">
189 <summary>
190 Looks up a localized string similar to The SyncRoot property may not be used for the synchronization of concurrent collections..
191 </summary>
192 </member>
193 <member name="P:System.Strings.ConcurrentDictionary_ArrayIncorrectType">
194 <summary>
195 Looks up a localized string similar to The array is multidimensional, or the type parameter for the set cannot be cast automatically to the type of the destination array..
196 </summary>
197 </member>
198 <member name="P:System.Strings.ConcurrentDictionary_ArrayNotLargeEnough">
199 <summary>
200 Looks up a localized string similar to The index is equal to or greater than the length of the array, or the number of elements in the dictionary is greater than the available space from index to the end of the destination array..
201 </summary>
202 </member>
203 <member name="P:System.Strings.ConcurrentDictionary_CapacityMustNotBeNegative">
204 <summary>
205 Looks up a localized string similar to The capacity argument must be greater than or equal to zero..
206 </summary>
207 </member>
208 <member name="P:System.Strings.ConcurrentDictionary_ConcurrencyLevelMustBePositive">
209 <summary>
210 Looks up a localized string similar to The concurrencyLevel argument must be positive..
211 </summary>
212 </member>
213 <member name="P:System.Strings.ConcurrentDictionary_IndexIsNegative">
214 <summary>
215 Looks up a localized string similar to The index argument is less than zero..
216 </summary>
217 </member>
218 <member name="P:System.Strings.ConcurrentDictionary_ItemKeyIsNull">
219 <summary>
220 Looks up a localized string similar to TKey is a reference type and item.Key is null..
221 </summary>
222 </member>
223 <member name="P:System.Strings.ConcurrentDictionary_KeyAlreadyExisted">
224 <summary>
225 Looks up a localized string similar to The key already existed in the dictionary..
226 </summary>
227 </member>
228 <member name="P:System.Strings.ConcurrentDictionary_SourceContainsDuplicateKeys">
229 <summary>
230 Looks up a localized string similar to The source argument contains duplicate keys..
231 </summary>
232 </member>
233 <member name="P:System.Strings.ConcurrentDictionary_TypeOfKeyIncorrect">
234 <summary>
235 Looks up a localized string similar to The key was of an incorrect type for this dictionary..
236 </summary>
237 </member>
238 <member name="P:System.Strings.ConcurrentDictionary_TypeOfValueIncorrect">
239 <summary>
240 Looks up a localized string similar to The value was of an incorrect type for this dictionary..
241 </summary>
242 </member>
243 <member name="P:System.Strings.Lazy_CreateValue_NoParameterlessCtorForT">
244 <summary>
245 Looks up a localized string similar to The lazily-initialized type does not have a public, parameterless constructor..
246 </summary>
247 </member>
248 <member name="P:System.Strings.Lazy_StaticInit_InvalidOperation">
249 <summary>
250 Looks up a localized string similar to ValueFactory returned null..
251 </summary>
252 </member>
253 <member name="P:System.Strings.ManualResetEventSlim_ctor_SpinCountOutOfRange">
254 <summary>
255 Looks up a localized string similar to The spinCount argument must be in the range 0 to {0}, inclusive..
256 </summary>
257 </member>
258 <member name="P:System.Strings.ManualResetEventSlim_ctor_TooManyWaiters">
259 <summary>
260 Looks up a localized string similar to There are too many threads currently waiting on the event. A maximum of {0} waiting threads are supported..
261 </summary>
262 </member>
263 <member name="P:System.Strings.ManualResetEventSlim_Disposed">
264 <summary>
265 Looks up a localized string similar to The event has been disposed..
266 </summary>
267 </member>
268 <member name="P:System.Strings.OperationCanceled">
269 <summary>
270 Looks up a localized string similar to The operation was canceled..
271 </summary>
272 </member>
273 <member name="P:System.Strings.SpinWait_SpinUntil_ArgumentNull">
274 <summary>
275 Looks up a localized string similar to The condition argument is null..
276 </summary>
277 </member>
278 <member name="P:System.Strings.SpinWait_SpinUntil_TimeoutWrong">
279 <summary>
280 Looks up a localized string similar to The timeout must represent a value between -1 and Int32.MaxValue, inclusive..
281 </summary>
282 </member>
283 <member name="P:System.Strings.Task_ContinueWith_ESandLR">
284 <summary>
285 Looks up a localized string similar to The specified TaskContinuationOptions combined LongRunning and ExecuteSynchronously. Synchronous continuations should not be long running..
286 </summary>
287 </member>
288 <member name="P:System.Strings.Task_ContinueWith_NotOnAnything">
289 <summary>
290 Looks up a localized string similar to The specified TaskContinuationOptions excluded all continuation kinds..
291 </summary>
292 </member>
293 <member name="P:System.Strings.Task_ctor_LRandSR">
294 <summary>
295 Looks up a localized string similar to (Internal)An attempt was made to create a LongRunning SelfReplicating task..
296 </summary>
297 </member>
298 <member name="P:System.Strings.Task_Delay_InvalidDelay">
299 <summary>
300 Looks up a localized string similar to The value needs to translate in milliseconds to -1 (signifying an infinite timeout), 0 or a positive integer less than or equal to Int32.MaxValue..
301 </summary>
302 </member>
303 <member name="P:System.Strings.Task_Delay_InvalidMillisecondsDelay">
304 <summary>
305 Looks up a localized string similar to The value needs to be either -1 (signifying an infinite timeout), 0 or a positive integer..
306 </summary>
307 </member>
308 <member name="P:System.Strings.Task_Dispose_NotCompleted">
309 <summary>
310 Looks up a localized string similar to A task may only be disposed if it is in a completion state (RanToCompletion, Faulted or Canceled)..
311 </summary>
312 </member>
313 <member name="P:System.Strings.Task_FromAsync_LongRunning">
314 <summary>
315 Looks up a localized string similar to It is invalid to specify TaskCreationOptions.LongRunning in calls to FromAsync..
316 </summary>
317 </member>
318 <member name="P:System.Strings.Task_FromAsync_PreferFairness">
319 <summary>
320 Looks up a localized string similar to It is invalid to specify TaskCreationOptions.PreferFairness in calls to FromAsync..
321 </summary>
322 </member>
323 <member name="P:System.Strings.Task_FromAsync_SelfReplicating">
324 <summary>
325 Looks up a localized string similar to It is invalid to specify TaskCreationOptions.SelfReplicating in calls to FromAsync..
326 </summary>
327 </member>
328 <member name="P:System.Strings.Task_FromAsync_TaskManagerShutDown">
329 <summary>
330 Looks up a localized string similar to FromAsync was called with a TaskManager that had already shut down..
331 </summary>
332 </member>
333 <member name="P:System.Strings.Task_MultiTaskContinuation_EmptyTaskList">
334 <summary>
335 Looks up a localized string similar to The tasks argument contains no tasks..
336 </summary>
337 </member>
338 <member name="P:System.Strings.Task_MultiTaskContinuation_FireOptions">
339 <summary>
340 Looks up a localized string similar to It is invalid to exclude specific continuation kinds for continuations off of multiple tasks..
341 </summary>
342 </member>
343 <member name="P:System.Strings.Task_MultiTaskContinuation_NullTask">
344 <summary>
345 Looks up a localized string similar to The tasks argument included a null value..
346 </summary>
347 </member>
348 <member name="P:System.Strings.Task_RunSynchronously_AlreadyStarted">
349 <summary>
350 Looks up a localized string similar to RunSynchronously may not be called on a task that was already started..
351 </summary>
352 </member>
353 <member name="P:System.Strings.Task_RunSynchronously_Continuation">
354 <summary>
355 Looks up a localized string similar to RunSynchronously may not be called on a continuation task..
356 </summary>
357 </member>
358 <member name="P:System.Strings.Task_RunSynchronously_Promise">
359 <summary>
360 Looks up a localized string similar to RunSynchronously may not be called on a task not bound to a delegate, such as the task returned from an asynchronous method..
361 </summary>
362 </member>
363 <member name="P:System.Strings.Task_RunSynchronously_TaskCompleted">
364 <summary>
365 Looks up a localized string similar to RunSynchronously may not be called on a task that has already completed..
366 </summary>
367 </member>
368 <member name="P:System.Strings.Task_Start_AlreadyStarted">
369 <summary>
370 Looks up a localized string similar to Start may not be called on a task that was already started..
371 </summary>
372 </member>
373 <member name="P:System.Strings.Task_Start_ContinuationTask">
374 <summary>
375 Looks up a localized string similar to Start may not be called on a continuation task..
376 </summary>
377 </member>
378 <member name="P:System.Strings.Task_Start_NullAction">
379 <summary>
380 Looks up a localized string similar to Start may not be called on a task with null action..
381 </summary>
382 </member>
383 <member name="P:System.Strings.Task_Start_Promise">
384 <summary>
385 Looks up a localized string similar to Start may not be called on a promise-style task..
386 </summary>
387 </member>
388 <member name="P:System.Strings.Task_Start_TaskCompleted">
389 <summary>
390 Looks up a localized string similar to Start may not be called on a task that has completed..
391 </summary>
392 </member>
393 <member name="P:System.Strings.Task_ThrowIfDisposed">
394 <summary>
395 Looks up a localized string similar to The task has been disposed..
396 </summary>
397 </member>
398 <member name="P:System.Strings.Task_WaitMulti_NullTask">
399 <summary>
400 Looks up a localized string similar to The tasks array included at least one null element..
401 </summary>
402 </member>
403 <member name="P:System.Strings.TaskAwaiter_TaskNotCompleted">
404 <summary>
405 Looks up a localized string similar to The awaited task has not yet completed..
406 </summary>
407 </member>
408 <member name="P:System.Strings.TaskCanceledException_ctor_DefaultMessage">
409 <summary>
410 Looks up a localized string similar to A task was canceled..
411 </summary>
412 </member>
413 <member name="P:System.Strings.TaskCompletionSourceT_TrySetException_NoExceptions">
414 <summary>
415 Looks up a localized string similar to The exceptions collection was empty..
416 </summary>
417 </member>
418 <member name="P:System.Strings.TaskCompletionSourceT_TrySetException_NullException">
419 <summary>
420 Looks up a localized string similar to The exceptions collection included at least one null element..
421 </summary>
422 </member>
423 <member name="P:System.Strings.TaskExceptionHolder_UnhandledException">
424 <summary>
425 Looks up a localized string similar to A Task&apos;s exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread..
426 </summary>
427 </member>
428 <member name="P:System.Strings.TaskExceptionHolder_UnknownExceptionType">
429 <summary>
430 Looks up a localized string similar to (Internal)Expected an Exception or an IEnumerable&lt;Exception&gt;.
431 </summary>
432 </member>
433 <member name="P:System.Strings.TaskScheduler_ExecuteTask_TaskAlreadyExecuted">
434 <summary>
435 Looks up a localized string similar to ExecuteTask may not be called for a task which was already executed..
436 </summary>
437 </member>
438 <member name="P:System.Strings.TaskScheduler_ExecuteTask_WrongTaskScheduler">
439 <summary>
440 Looks up a localized string similar to ExecuteTask may not be called for a task which was previously queued to a different TaskScheduler..
441 </summary>
442 </member>
443 <member name="P:System.Strings.TaskScheduler_FromCurrentSynchronizationContext_NoCurrent">
444 <summary>
445 Looks up a localized string similar to The current SynchronizationContext may not be used as a TaskScheduler..
446 </summary>
447 </member>
448 <member name="P:System.Strings.TaskScheduler_InconsistentStateAfterTryExecuteTaskInline">
449 <summary>
450 Looks up a localized string similar to The TryExecuteTaskInline call to the underlying scheduler succeeded, but the task body was not invoked..
451 </summary>
452 </member>
453 <member name="P:System.Strings.TaskSchedulerException_ctor_DefaultMessage">
454 <summary>
455 Looks up a localized string similar to An exception was thrown by a TaskScheduler..
456 </summary>
457 </member>
458 <member name="P:System.Strings.TaskT_ctor_SelfReplicating">
459 <summary>
460 Looks up a localized string similar to It is invalid to specify TaskCreationOptions.SelfReplicating for a Task&lt;TResult&gt;..
461 </summary>
462 </member>
463 <member name="P:System.Strings.TaskT_DebuggerNoResult">
464 <summary>
465 Looks up a localized string similar to {Not yet computed}.
466 </summary>
467 </member>
468 <member name="P:System.Strings.TaskT_SetException_HasAnInitializer">
469 <summary>
470 Looks up a localized string similar to A task&apos;s Exception may only be set directly if the task was created without a function..
471 </summary>
472 </member>
473 <member name="P:System.Strings.TaskT_TransitionToFinal_AlreadyCompleted">
474 <summary>
475 Looks up a localized string similar to An attempt was made to transition a task to a final state when it had already completed..
476 </summary>
477 </member>
478 <member name="T:System.Collections.Concurrent.ConcurrentDictionary`2">
479 <summary>
480 Represents a thread-safe collection of keys and values.
481 </summary>
482 <typeparam name="TKey">The type of the keys in the dictionary.</typeparam>
483 <typeparam name="TValue">The type of the values in the dictionary.</typeparam>
484 <remarks>
485 All public and protected members of <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> are thread-safe and may be used
486 concurrently from multiple threads.
487 </remarks>
488 </member>
489 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor">
490 <summary>
491 Initializes a new instance of the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
492 class that is empty, has the default concurrency level, has the default initial capacity, and
493 uses the default comparer for the key type.
494 </summary>
495 </member>
496 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Int32,System.Int32)">
497 <summary>
498 Initializes a new instance of the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
499 class that is empty, has the specified concurrency level and capacity, and uses the default
500 comparer for the key type.
501 </summary>
502 <param name="concurrencyLevel">The estimated number of threads that will update the
503 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> concurrently.</param>
504 <param name="capacity">The initial number of elements that the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
505 can contain.</param>
506 <exception cref="T:ArgumentOutOfRangeException"><paramref name="concurrencyLevel"/> is
507 less than 1.</exception>
508 <exception cref="T:ArgumentOutOfRangeException"> <paramref name="capacity"/> is less than
509 0.</exception>
510 </member>
511 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{`0,`1}})">
512 <summary>
513 Initializes a new instance of the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
514 class that contains elements copied from the specified <see cref="T:System.Collections.IEnumerable{KeyValuePair{TKey,TValue}}"/>, has the default concurrency
515 level, has the default initial capacity, and uses the default comparer for the key type.
516 </summary>
517 <param name="collection">The <see cref="T:System.Collections.IEnumerable{KeyValuePair{TKey,TValue}}"/> whose elements are copied to
518 the new
519 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</param>
520 <exception cref="T:System.ArgumentNullException"><paramref name="collection"/> is a null reference
521 (Nothing in Visual Basic).</exception>
522 <exception cref="T:System.ArgumentException"><paramref name="collection"/> contains one or more
523 duplicate keys.</exception>
524 </member>
525 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Collections.Generic.IEqualityComparer{`0})">
526 <summary>
527 Initializes a new instance of the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
528 class that is empty, has the specified concurrency level and capacity, and uses the specified
529 <see cref="T:System.Collections.Generic.IEqualityComparer{TKey}"/>.
530 </summary>
531 <param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer{TKey}"/>
532 implementation to use when comparing keys.</param>
533 <exception cref="T:System.ArgumentNullException"><paramref name="comparer"/> is a null reference
534 (Nothing in Visual Basic).</exception>
535 </member>
536 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{`0,`1}},System.Collections.Generic.IEqualityComparer{`0})">
537 <summary>
538 Initializes a new instance of the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
539 class that contains elements copied from the specified <see cref="T:System.Collections.IEnumerable"/>, has the default concurrency level, has the default
540 initial capacity, and uses the specified
541 <see cref="T:System.Collections.Generic.IEqualityComparer{TKey}"/>.
542 </summary>
543 <param name="collection">The <see cref="T:System.Collections.IEnumerable{KeyValuePair{TKey,TValue}}"/> whose elements are copied to
544 the new
545 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</param>
546 <param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer{TKey}"/>
547 implementation to use when comparing keys.</param>
548 <exception cref="T:System.ArgumentNullException"><paramref name="collection"/> is a null reference
549 (Nothing in Visual Basic). -or-
550 <paramref name="comparer"/> is a null reference (Nothing in Visual Basic).
551 </exception>
552 </member>
553 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Int32,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{`0,`1}},System.Collections.Generic.IEqualityComparer{`0})">
554 <summary>
555 Initializes a new instance of the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
556 class that contains elements copied from the specified <see cref="T:System.Collections.IEnumerable"/>,
557 has the specified concurrency level, has the specified initial capacity, and uses the specified
558 <see cref="T:System.Collections.Generic.IEqualityComparer{TKey}"/>.
559 </summary>
560 <param name="concurrencyLevel">The estimated number of threads that will update the
561 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> concurrently.</param>
562 <param name="collection">The <see cref="T:System.Collections.IEnumerable{KeyValuePair{TKey,TValue}}"/> whose elements are copied to the new
563 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</param>
564 <param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer{TKey}"/> implementation to use
565 when comparing keys.</param>
566 <exception cref="T:System.ArgumentNullException">
567 <paramref name="collection"/> is a null reference (Nothing in Visual Basic).
568 -or-
569 <paramref name="comparer"/> is a null reference (Nothing in Visual Basic).
570 </exception>
571 <exception cref="T:ArgumentOutOfRangeException">
572 <paramref name="concurrencyLevel"/> is less than 1.
573 </exception>
574 <exception cref="T:System.ArgumentException"><paramref name="collection"/> contains one or more duplicate keys.</exception>
575 </member>
576 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Int32,System.Int32,System.Collections.Generic.IEqualityComparer{`0})">
577 <summary>
578 Initializes a new instance of the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
579 class that is empty, has the specified concurrency level, has the specified initial capacity, and
580 uses the specified <see cref="T:System.Collections.Generic.IEqualityComparer{TKey}"/>.
581 </summary>
582 <param name="concurrencyLevel">The estimated number of threads that will update the
583 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> concurrently.</param>
584 <param name="capacity">The initial number of elements that the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
585 can contain.</param>
586 <param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer{TKey}"/>
587 implementation to use when comparing keys.</param>
588 <exception cref="T:ArgumentOutOfRangeException">
589 <paramref name="concurrencyLevel"/> is less than 1. -or-
590 <paramref name="capacity"/> is less than 0.
591 </exception>
592 <exception cref="T:System.ArgumentNullException"><paramref name="comparer"/> is a null reference
593 (Nothing in Visual Basic).</exception>
594 </member>
595 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.TryAdd(`0,`1)">
596 <summary>
597 Attempts to add the specified key and value to the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.
598 </summary>
599 <param name="key">The key of the element to add.</param>
600 <param name="value">The value of the element to add. The value can be a null reference (Nothing
601 in Visual Basic) for reference types.</param>
602 <returns>true if the key/value pair was added to the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
603 successfully; otherwise, false.</returns>
604 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is null reference
605 (Nothing in Visual Basic).</exception>
606 <exception cref="T:System.OverflowException">The <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
607 contains too many elements.</exception>
608 </member>
609 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.ContainsKey(`0)">
610 <summary>
611 Determines whether the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> contains the specified
612 key.
613 </summary>
614 <param name="key">The key to locate in the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</param>
615 <returns>true if the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> contains an element with
616 the specified key; otherwise, false.</returns>
617 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
618 (Nothing in Visual Basic).</exception>
619 </member>
620 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.TryRemove(`0,`1@)">
621 <summary>
622 Attempts to remove and return the the value with the specified key from the
623 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.
624 </summary>
625 <param name="key">The key of the element to remove and return.</param>
626 <param name="value">When this method returns, <paramref name="value"/> contains the object removed from the
627 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> or the default value of <typeparamref name="TValue"/>
628 if the operation failed.</param>
629 <returns>true if an object was removed successfully; otherwise, false.</returns>
630 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
631 (Nothing in Visual Basic).</exception>
632 </member>
633 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.TryRemoveInternal(`0,`1@,System.Boolean,`1)">
634 <summary>
635 Removes the specified key from the dictionary if it exists and returns its associated value.
636 If matchValue flag is set, the key will be removed only if is associated with a particular
637 value.
638 </summary>
639 <param name="key">The key to search for and remove if it exists.</param>
640 <param name="value">The variable into which the removed value, if found, is stored.</param>
641 <param name="matchValue">Whether removal of the key is conditional on its value.</param>
642 <param name="oldValue">The conditional value to compare against if <paramref name="matchValue"/> is true</param>
643 <returns></returns>
644 </member>
645 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.TryGetValue(`0,`1@)">
646 <summary>
647 Attempts to get the value associated with the specified key from the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.
648 </summary>
649 <param name="key">The key of the value to get.</param>
650 <param name="value">When this method returns, <paramref name="value"/> contains the object from
651 the
652 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> with the spedified key or the default value of
653 <typeparamref name="TValue"/>, if the operation failed.</param>
654 <returns>true if the key was found in the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>;
655 otherwise, false.</returns>
656 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
657 (Nothing in Visual Basic).</exception>
658 </member>
659 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.TryUpdate(`0,`1,`1)">
660 <summary>
661 Compares the existing value for the specified key with a specified value, and if they’re equal,
662 updates the key with a third value.
663 </summary>
664 <param name="key">The key whose value is compared with <paramref name="comparisonValue"/> and
665 possibly replaced.</param>
666 <param name="newValue">The value that replaces the value of the element with <paramref
667 name="key"/> if the comparison results in equality.</param>
668 <param name="comparisonValue">The value that is compared to the value of the element with
669 <paramref name="key"/>.</param>
670 <returns>true if the value with <paramref name="key"/> was equal to <paramref
671 name="comparisonValue"/> and replaced with <paramref name="newValue"/>; otherwise,
672 false.</returns>
673 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null
674 reference.</exception>
675 </member>
676 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.Clear">
677 <summary>
678 Removes all keys and values from the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.
679 </summary>
680 </member>
681 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#ICollection{System#Collections#Generic#KeyValuePair{TKey@TValue}}#CopyTo(System.Collections.Generic.KeyValuePair{`0,`1}[],System.Int32)">
682 <summary>
683 Copies the elements of the <see cref="T:System.Collections.Generic.ICollection"/> to an array of
684 type <see cref="T:System.Collections.Generic.KeyValuePair{TKey,TValue}"/>, starting at the
685 specified array index.
686 </summary>
687 <param name="array">The one-dimensional array of type <see
688 cref="T:System.Collections.Generic.KeyValuePair{TKey,TValue}"/>
689 that is the destination of the <see
690 cref="T:System.Collections.Generic.KeyValuePair{TKey,TValue}"/> elements copied from the <see
691 cref="T:System.Collections.ICollection"/>. The array must have zero-based indexing.</param>
692 <param name="index">The zero-based index in <paramref name="array"/> at which copying
693 begins.</param>
694 <exception cref="T:System.ArgumentNullException"><paramref name="array"/> is a null reference
695 (Nothing in Visual Basic).</exception>
696 <exception cref="T:ArgumentOutOfRangeException"><paramref name="index"/> is less than
697 0.</exception>
698 <exception cref="T:System.ArgumentException"><paramref name="index"/> is equal to or greater than
699 the length of the <paramref name="array"/>. -or- The number of elements in the source <see
700 cref="T:System.Collections.ICollection"/>
701 is greater than the available space from <paramref name="index"/> to the end of the destination
702 <paramref name="array"/>.</exception>
703 </member>
704 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.ToArray">
705 <summary>
706 Copies the key and value pairs stored in the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> to a
707 new array.
708 </summary>
709 <returns>A new array containing a snapshot of key and value pairs copied from the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</returns>
710 </member>
711 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.CopyToPairs(System.Collections.Generic.KeyValuePair{`0,`1}[],System.Int32)">
712 <summary>
713 Copy dictionary contents to an array - shared implementation between ToArray and CopyTo.
714
715 Important: the caller must hold all locks in m_locks before calling CopyToPairs.
716 </summary>
717 </member>
718 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.CopyToEntries(System.Collections.DictionaryEntry[],System.Int32)">
719 <summary>
720 Copy dictionary contents to an array - shared implementation between ToArray and CopyTo.
721
722 Important: the caller must hold all locks in m_locks before calling CopyToEntries.
723 </summary>
724 </member>
725 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.CopyToObjects(System.Object[],System.Int32)">
726 <summary>
727 Copy dictionary contents to an array - shared implementation between ToArray and CopyTo.
728
729 Important: the caller must hold all locks in m_locks before calling CopyToObjects.
730 </summary>
731 </member>
732 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetEnumerator">
733 <summary>Returns an enumerator that iterates through the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</summary>
734 <returns>An enumerator for the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</returns>
735 <remarks>
736 The enumerator returned from the dictionary is safe to use concurrently with
737 reads and writes to the dictionary, however it does not represent a moment-in-time snapshot
738 of the dictionary. The contents exposed through the enumerator may contain modifications
739 made to the dictionary after <see cref="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetEnumerator"/> was called.
740 </remarks>
741 </member>
742 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.TryAddInternal(`0,`1,System.Boolean,System.Boolean,`1@)">
743 <summary>
744 Shared internal implementation for inserts and updates.
745 If key exists, we always return false; and if updateIfExists == true we force update with value;
746 If key doesn't exist, we always add value and return true;
747 </summary>
748 </member>
749 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(`0,System.Func{`0,`1})">
750 <summary>
751 Adds a key/value pair to the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
752 if the key does not already exist.
753 </summary>
754 <param name="key">The key of the element to add.</param>
755 <param name="valueFactory">The function used to generate a value for the key</param>
756 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
757 (Nothing in Visual Basic).</exception>
758 <exception cref="T:System.ArgumentNullException"><paramref name="valueFactory"/> is a null reference
759 (Nothing in Visual Basic).</exception>
760 <exception cref="T:System.OverflowException">The dictionary contains too many
761 elements.</exception>
762 <returns>The value for the key. This will be either the existing value for the key if the
763 key is already in the dictionary, or the new value for the key as returned by valueFactory
764 if the key was not in the dictionary.</returns>
765 </member>
766 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(`0,`1)">
767 <summary>
768 Adds a key/value pair to the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
769 if the key does not already exist.
770 </summary>
771 <param name="key">The key of the element to add.</param>
772 <param name="value">the value to be added, if the key does not already exist</param>
773 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
774 (Nothing in Visual Basic).</exception>
775 <exception cref="T:System.OverflowException">The dictionary contains too many
776 elements.</exception>
777 <returns>The value for the key. This will be either the existing value for the key if the
778 key is already in the dictionary, or the new value if the key was not in the dictionary.</returns>
779 </member>
780 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(`0,System.Func{`0,`1},System.Func{`0,`1,`1})">
781 <summary>
782 Adds a key/value pair to the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> if the key does not already
783 exist, or updates a key/value pair in the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> if the key
784 already exists.
785 </summary>
786 <param name="key">The key to be added or whose value should be updated</param>
787 <param name="addValueFactory">The function used to generate a value for an absent key</param>
788 <param name="updateValueFactory">The function used to generate a new value for an existing key
789 based on the key's existing value</param>
790 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
791 (Nothing in Visual Basic).</exception>
792 <exception cref="T:System.ArgumentNullException"><paramref name="addValueFactory"/> is a null reference
793 (Nothing in Visual Basic).</exception>
794 <exception cref="T:System.ArgumentNullException"><paramref name="updateValueFactory"/> is a null reference
795 (Nothing in Visual Basic).</exception>
796 <exception cref="T:System.OverflowException">The dictionary contains too many
797 elements.</exception>
798 <returns>The new value for the key. This will be either be the result of addValueFactory (if the key was
799 absent) or the result of updateValueFactory (if the key was present).</returns>
800 </member>
801 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(`0,`1,System.Func{`0,`1,`1})">
802 <summary>
803 Adds a key/value pair to the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> if the key does not already
804 exist, or updates a key/value pair in the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> if the key
805 already exists.
806 </summary>
807 <param name="key">The key to be added or whose value should be updated</param>
808 <param name="addValue">The value to be added for an absent key</param>
809 <param name="updateValueFactory">The function used to generate a new value for an existing key based on
810 the key's existing value</param>
811 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
812 (Nothing in Visual Basic).</exception>
813 <exception cref="T:System.ArgumentNullException"><paramref name="updateValueFactory"/> is a null reference
814 (Nothing in Visual Basic).</exception>
815 <exception cref="T:System.OverflowException">The dictionary contains too many
816 elements.</exception>
817 <returns>The new value for the key. This will be either be the result of addValueFactory (if the key was
818 absent) or the result of updateValueFactory (if the key was present).</returns>
819 </member>
820 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#IDictionary{TKey@TValue}#Add(`0,`1)">
821 <summary>
822 Adds the specified key and value to the <see cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/>.
823 </summary>
824 <param name="key">The object to use as the key of the element to add.</param>
825 <param name="value">The object to use as the value of the element to add.</param>
826 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
827 (Nothing in Visual Basic).</exception>
828 <exception cref="T:System.OverflowException">The dictionary contains too many
829 elements.</exception>
830 <exception cref="T:System.ArgumentException">
831 An element with the same key already exists in the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</exception>
832 </member>
833 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#IDictionary{TKey@TValue}#Remove(`0)">
834 <summary>
835 Removes the element with the specified key from the <see
836 cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/>.
837 </summary>
838 <param name="key">The key of the element to remove.</param>
839 <returns>true if the element is successfully remove; otherwise false. This method also returns
840 false if
841 <paramref name="key"/> was not found in the original <see
842 cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/>.
843 </returns>
844 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
845 (Nothing in Visual Basic).</exception>
846 </member>
847 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#ICollection{System#Collections#Generic#KeyValuePair{TKey@TValue}}#Add(System.Collections.Generic.KeyValuePair{`0,`1})">
848 <summary>
849 Adds the specified value to the <see cref="T:System.Collections.Generic.ICollection{TValue}"/>
850 with the specified key.
851 </summary>
852 <param name="keyValuePair">The <see cref="T:System.Collections.Generic.KeyValuePair{TKey,TValue}"/>
853 structure representing the key and value to add to the <see
854 cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>.</param>
855 <exception cref="T:System.ArgumentNullException">The <paramref name="keyValuePair"/> of <paramref
856 name="keyValuePair"/> is null.</exception>
857 <exception cref="T:System.OverflowException">The <see
858 cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>
859 contains too many elements.</exception>
860 <exception cref="T:System.ArgumentException">An element with the same key already exists in the
861 <see cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/></exception>
862 </member>
863 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#ICollection{System#Collections#Generic#KeyValuePair{TKey@TValue}}#Contains(System.Collections.Generic.KeyValuePair{`0,`1})">
864 <summary>
865 Determines whether the <see cref="T:System.Collections.Generic.ICollection{TKey,TValue}"/>
866 contains a specific key and value.
867 </summary>
868 <param name="keyValuePair">The <see cref="T:System.Collections.Generic.KeyValuePair{TKey,TValue}"/>
869 structure to locate in the <see
870 cref="T:System.Collections.Generic.ICollection{TValue}"/>.</param>
871 <returns>true if the <paramref name="keyValuePair"/> is found in the <see
872 cref="T:System.Collections.Generic.ICollection{TKey,TValue}"/>; otherwise, false.</returns>
873 </member>
874 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#ICollection{System#Collections#Generic#KeyValuePair{TKey@TValue}}#Remove(System.Collections.Generic.KeyValuePair{`0,`1})">
875 <summary>
876 Removes a key and value from the dictionary.
877 </summary>
878 <param name="keyValuePair">The <see
879 cref="T:System.Collections.Generic.KeyValuePair{TKey,TValue}"/>
880 structure representing the key and value to remove from the <see
881 cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>.</param>
882 <returns>true if the key and value represented by <paramref name="keyValuePair"/> is successfully
883 found and removed; otherwise, false.</returns>
884 <exception cref="T:System.ArgumentNullException">The Key property of <paramref
885 name="keyValuePair"/> is a null reference (Nothing in Visual Basic).</exception>
886 </member>
887 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IEnumerable#GetEnumerator">
888 <summary>Returns an enumerator that iterates through the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</summary>
889 <returns>An enumerator for the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</returns>
890 <remarks>
891 The enumerator returned from the dictionary is safe to use concurrently with
892 reads and writes to the dictionary, however it does not represent a moment-in-time snapshot
893 of the dictionary. The contents exposed through the enumerator may contain modifications
894 made to the dictionary after <see cref="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetEnumerator"/> was called.
895 </remarks>
896 </member>
897 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Add(System.Object,System.Object)">
898 <summary>
899 Adds the specified key and value to the dictionary.
900 </summary>
901 <param name="key">The object to use as the key.</param>
902 <param name="value">The object to use as the value.</param>
903 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
904 (Nothing in Visual Basic).</exception>
905 <exception cref="T:System.OverflowException">The dictionary contains too many
906 elements.</exception>
907 <exception cref="T:System.ArgumentException">
908 <paramref name="key"/> is of a type that is not assignable to the key type <typeparamref
909 name="TKey"/> of the <see cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>. -or-
910 <paramref name="value"/> is of a type that is not assignable to <typeparamref name="TValue"/>,
911 the type of values in the <see cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>.
912 -or- A value with the same key already exists in the <see
913 cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>.
914 </exception>
915 </member>
916 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Contains(System.Object)">
917 <summary>
918 Gets whether the <see cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/> contains an
919 element with the specified key.
920 </summary>
921 <param name="key">The key to locate in the <see
922 cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/>.</param>
923 <returns>true if the <see cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/> contains
924 an element with the specified key; otherwise, false.</returns>
925 <exception cref="T:System.ArgumentNullException"> <paramref name="key"/> is a null reference
926 (Nothing in Visual Basic).</exception>
927 </member>
928 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#GetEnumerator">
929 <summary>Provides an <see cref="T:System.Collections.Generics.IDictionaryEnumerator"/> for the
930 <see cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/>.</summary>
931 <returns>An <see cref="T:System.Collections.Generics.IDictionaryEnumerator"/> for the <see
932 cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/>.</returns>
933 </member>
934 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Remove(System.Object)">
935 <summary>
936 Removes the element with the specified key from the <see
937 cref="T:System.Collections.IDictionary"/>.
938 </summary>
939 <param name="key">The key of the element to remove.</param>
940 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
941 (Nothing in Visual Basic).</exception>
942 </member>
943 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#ICollection#CopyTo(System.Array,System.Int32)">
944 <summary>
945 Copies the elements of the <see cref="T:System.Collections.ICollection"/> to an array, starting
946 at the specified array index.
947 </summary>
948 <param name="array">The one-dimensional array that is the destination of the elements copied from
949 the <see cref="T:System.Collections.ICollection"/>. The array must have zero-based
950 indexing.</param>
951 <param name="index">The zero-based index in <paramref name="array"/> at which copying
952 begins.</param>
953 <exception cref="T:System.ArgumentNullException"><paramref name="array"/> is a null reference
954 (Nothing in Visual Basic).</exception>
955 <exception cref="T:ArgumentOutOfRangeException"><paramref name="index"/> is less than
956 0.</exception>
957 <exception cref="T:System.ArgumentException"><paramref name="index"/> is equal to or greater than
958 the length of the <paramref name="array"/>. -or- The number of elements in the source <see
959 cref="T:System.Collections.ICollection"/>
960 is greater than the available space from <paramref name="index"/> to the end of the destination
961 <paramref name="array"/>.</exception>
962 </member>
963 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.GrowTable(System.Collections.Concurrent.ConcurrentDictionary{`0,`1}.Node[])">
964 <summary>
965 Replaces the internal table with a larger one. To prevent multiple threads from resizing the
966 table as a result of races, the table of buckets that was deemed too small is passed in as
967 an argument to GrowTable(). GrowTable() obtains a lock, and then checks whether the bucket
968 table has been replaced in the meantime or not.
969 </summary>
970 <param name="buckets">Reference to the bucket table that was deemed too small.</param>
971 </member>
972 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetBucketAndLockNo(System.Int32,System.Int32@,System.Int32@,System.Int32)">
973 <summary>
974 Computes the bucket and lock number for a particular key.
975 </summary>
976 </member>
977 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.AcquireAllLocks(System.Int32@)">
978 <summary>
979 Acquires all locks for this hash table, and increments locksAcquired by the number
980 of locks that were successfully acquired. The locks are acquired in an increasing
981 order.
982 </summary>
983 </member>
984 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.AcquireLocks(System.Int32,System.Int32,System.Int32@)">
985 <summary>
986 Acquires a contiguous range of locks for this hash table, and increments locksAcquired
987 by the number of locks that were successfully acquired. The locks are acquired in an
988 increasing order.
989 </summary>
990 </member>
991 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.ReleaseLocks(System.Int32,System.Int32)">
992 <summary>
993 Releases a contiguous range of locks.
994 </summary>
995 </member>
996 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetKeys">
997 <summary>
998 Gets a collection containing the keys in the dictionary.
999 </summary>
1000 </member>
1001 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetValues">
1002 <summary>
1003 Gets a collection containing the values in the dictionary.
1004 </summary>
1005 </member>
1006 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.Assert(System.Boolean)">
1007 <summary>
1008 A helper method for asserts.
1009 </summary>
1010 </member>
1011 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.OnSerializing(System.Runtime.Serialization.StreamingContext)">
1012 <summary>
1013 Get the data array to be serialized
1014 </summary>
1015 </member>
1016 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.OnDeserialized(System.Runtime.Serialization.StreamingContext)">
1017 <summary>
1018 Construct the dictionary from a previously seiralized one
1019 </summary>
1020 </member>
1021 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.Item(`0)">
1022 <summary>
1023 Gets or sets the value associated with the specified key.
1024 </summary>
1025 <param name="key">The key of the value to get or set.</param>
1026 <value>The value associated with the specified key. If the specified key is not found, a get
1027 operation throws a
1028 <see cref="T:Sytem.Collections.Generic.KeyNotFoundException"/>, and a set operation creates a new
1029 element with the specified key.</value>
1030 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
1031 (Nothing in Visual Basic).</exception>
1032 <exception cref="T:System.Collections.Generic.KeyNotFoundException">The property is retrieved and
1033 <paramref name="key"/>
1034 does not exist in the collection.</exception>
1035 </member>
1036 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.Count">
1037 <summary>
1038 Gets the number of key/value pairs contained in the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.
1039 </summary>
1040 <exception cref="T:System.OverflowException">The dictionary contains too many
1041 elements.</exception>
1042 <value>The number of key/value paris contained in the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>.</value>
1043 <remarks>Count has snapshot semantics and represents the number of items in the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/>
1044 at the moment when Count was accessed.</remarks>
1045 </member>
1046 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.IsEmpty">
1047 <summary>
1048 Gets a value that indicates whether the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> is empty.
1049 </summary>
1050 <value>true if the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2"/> is empty; otherwise,
1051 false.</value>
1052 </member>
1053 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.Keys">
1054 <summary>
1055 Gets a collection containing the keys in the <see
1056 cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>.
1057 </summary>
1058 <value>An <see cref="T:System.Collections.Generic.ICollection{TKey}"/> containing the keys in the
1059 <see cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>.</value>
1060 </member>
1061 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.Values">
1062 <summary>
1063 Gets a collection containing the values in the <see
1064 cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>.
1065 </summary>
1066 <value>An <see cref="T:System.Collections.Generic.ICollection{TValue}"/> containing the values in
1067 the
1068 <see cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>.</value>
1069 </member>
1070 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#ICollection{System#Collections#Generic#KeyValuePair{TKey@TValue}}#IsReadOnly">
1071 <summary>
1072 Gets a value indicating whether the dictionary is read-only.
1073 </summary>
1074 <value>true if the <see cref="T:System.Collections.Generic.ICollection{TKey,TValue}"/> is
1075 read-only; otherwise, false. For <see
1076 cref="T:System.Collections.Generic.Dictionary{TKey,TValue}"/>, this property always returns
1077 false.</value>
1078 </member>
1079 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#IsFixedSize">
1080 <summary>
1081 Gets a value indicating whether the <see
1082 cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/> has a fixed size.
1083 </summary>
1084 <value>true if the <see cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/> has a
1085 fixed size; otherwise, false. For <see
1086 cref="T:System.Collections.Generic.ConcurrentDictionary{TKey,TValue}"/>, this property always
1087 returns false.</value>
1088 </member>
1089 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#IsReadOnly">
1090 <summary>
1091 Gets a value indicating whether the <see
1092 cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/> is read-only.
1093 </summary>
1094 <value>true if the <see cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/> is
1095 read-only; otherwise, false. For <see
1096 cref="T:System.Collections.Generic.ConcurrentDictionary{TKey,TValue}"/>, this property always
1097 returns false.</value>
1098 </member>
1099 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Keys">
1100 <summary>
1101 Gets an <see cref="T:System.Collections.ICollection"/> containing the keys of the <see
1102 cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/>.
1103 </summary>
1104 <value>An <see cref="T:System.Collections.ICollection"/> containing the keys of the <see
1105 cref="T:System.Collections.Generic.IDictionary{TKey,TValue}"/>.</value>
1106 </member>
1107 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Values">
1108 <summary>
1109 Gets an <see cref="T:System.Collections.ICollection"/> containing the values in the <see
1110 cref="T:System.Collections.IDictionary"/>.
1111 </summary>
1112 <value>An <see cref="T:System.Collections.ICollection"/> containing the values in the <see
1113 cref="T:System.Collections.IDictionary"/>.</value>
1114 </member>
1115 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Item(System.Object)">
1116 <summary>
1117 Gets or sets the value associated with the specified key.
1118 </summary>
1119 <param name="key">The key of the value to get or set.</param>
1120 <value>The value associated with the specified key, or a null reference (Nothing in Visual Basic)
1121 if <paramref name="key"/> is not in the dictionary or <paramref name="key"/> is of a type that is
1122 not assignable to the key type <typeparamref name="TKey"/> of the <see
1123 cref="T:System.Collections.Generic.ConcurrentDictionary{TKey,TValue}"/>.</value>
1124 <exception cref="T:System.ArgumentNullException"><paramref name="key"/> is a null reference
1125 (Nothing in Visual Basic).</exception>
1126 <exception cref="T:System.ArgumentException">
1127 A value is being assigned, and <paramref name="key"/> is of a type that is not assignable to the
1128 key type <typeparamref name="TKey"/> of the <see
1129 cref="T:System.Collections.Generic.ConcurrentDictionary{TKey,TValue}"/>. -or- A value is being
1130 assigned, and <paramref name="key"/> is of a type that is not assignable to the value type
1131 <typeparamref name="TValue"/> of the <see
1132 cref="T:System.Collections.Generic.ConcurrentDictionary{TKey,TValue}"/>
1133 </exception>
1134 </member>
1135 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#ICollection#IsSynchronized">
1136 <summary>
1137 Gets a value indicating whether access to the <see cref="T:System.Collections.ICollection"/> is
1138 synchronized with the SyncRoot.
1139 </summary>
1140 <value>true if access to the <see cref="T:System.Collections.ICollection"/> is synchronized
1141 (thread safe); otherwise, false. For <see
1142 cref="T:System.Collections.Concurrent.ConcurrentDictionary{TKey,TValue}"/>, this property always
1143 returns false.</value>
1144 </member>
1145 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#ICollection#SyncRoot">
1146 <summary>
1147 Gets an object that can be used to synchronize access to the <see
1148 cref="T:System.Collections.ICollection"/>. This property is not supported.
1149 </summary>
1150 <exception cref="T:System.NotSupportedException">The SyncRoot property is not supported.</exception>
1151 </member>
1152 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.DefaultConcurrencyLevel">
1153 <summary>
1154 The number of concurrent writes for which to optimize by default.
1155 </summary>
1156 </member>
1157 <member name="T:System.Collections.Concurrent.ConcurrentDictionary`2.Node">
1158 <summary>
1159 A node in a singly-linked list representing a particular hash table bucket.
1160 </summary>
1161 </member>
1162 <member name="T:System.Collections.Concurrent.ConcurrentDictionary`2.DictionaryEnumerator">
1163 <summary>
1164 A private class to represent enumeration over the dictionary that implements the
1165 IDictionaryEnumerator interface.
1166 </summary>
1167 </member>
1168 <member name="M:System.Runtime.CompilerServices.AsyncServices.ThrowAsync(System.Exception,System.Threading.SynchronizationContext)">
1169 <summary>Throws the exception on the ThreadPool.</summary>
1170 <param name="exception">The exception to propagate.</param>
1171 <param name="targetContext">The target context on which to propagate the exception. Null to use the ThreadPool.</param>
1172 </member>
1173 <member name="M:System.Runtime.CompilerServices.AsyncServices.PrepareExceptionForRethrow(System.Exception)">
1174 <summary>Copies the exception's stack trace so its stack trace isn't overwritten.</summary>
1175 <param name="exc">The exception to prepare.</param>
1176 </member>
1177 <member name="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder">
1178 <summary>
1179 Provides a builder for asynchronous methods that return <see cref="T:System.Threading.Tasks.Task"/>.
1180 This type is intended for compiler use only.
1181 </summary>
1182 <remarks>
1183 AsyncTaskMethodBuilder is a value type, and thus it is copied by value.
1184 Prior to being copied, one of its Task, SetResult, or SetException members must be accessed,
1185 or else the copies may end up building distinct Task instances.
1186 </remarks>
1187 </member>
1188 <member name="T:System.Runtime.CompilerServices.IAsyncMethodBuilder">
1189 <summary>Represents an asynchronous method builder.</summary>
1190 </member>
1191 <member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.s_cachedCompleted">
1192 <summary>A cached VoidTaskResult task used for builders that complete synchronously.</summary>
1193 </member>
1194 <member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.m_builder">
1195 <summary>The generic builder object to which this non-generic instance delegates.</summary>
1196 </member>
1197 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Create">
1198 <summary>Initializes a new <see cref="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder"/>.</summary>
1199 <returns>The initialized <see cref="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder"/>.</returns>
1200 </member>
1201 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start``1(``0@)">
1202 <summary>Initiates the builder's execution with the associated state machine.</summary>
1203 <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
1204 <param name="stateMachine">The state machine instance, passed by reference.</param>
1205 </member>
1206 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
1207 <summary>Associates the builder with the state machine it represents.</summary>
1208 <param name="stateMachine">The heap-allocated state machine object.</param>
1209 <exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
1210 <exception cref="T:System.InvalidOperationException">The builder is incorrectly initialized.</exception>
1211 </member>
1212 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.System#Runtime#CompilerServices#IAsyncMethodBuilder#PreBoxInitialization">
1213 <summary>Perform any initialization necessary prior to lifting the builder to the heap.</summary>
1214 </member>
1215 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AwaitOnCompleted``2(``0@,``1@)">
1216 <summary>
1217 Schedules the specified state machine to be pushed forward when the specified awaiter completes.
1218 </summary>
1219 <typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
1220 <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
1221 <param name="awaiter">The awaiter.</param>
1222 <param name="stateMachine">The state machine.</param>
1223 </member>
1224 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AwaitUnsafeOnCompleted``2(``0@,``1@)">
1225 <summary>
1226 Schedules the specified state machine to be pushed forward when the specified awaiter completes.
1227 </summary>
1228 <typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
1229 <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
1230 <param name="awaiter">The awaiter.</param>
1231 <param name="stateMachine">The state machine.</param>
1232 </member>
1233 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult">
1234 <summary>
1235 Completes the <see cref="T:System.Threading.Tasks.Task"/> in the
1236 <see cref="T:System.Threading.Tasks.TaskStatus">RanToCompletion</see> state.
1237 </summary>
1238 <exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
1239 <exception cref="T:System.InvalidOperationException">The task has already completed.</exception>
1240 </member>
1241 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(System.Exception)">
1242 <summary>
1243 Completes the <see cref="T:System.Threading.Tasks.Task"/> in the
1244 <see cref="T:System.Threading.Tasks.TaskStatus">Faulted</see> state with the specified exception.
1245 </summary>
1246 <param name="exception">The <see cref="T:System.Exception"/> to use to fault the task.</param>
1247 <exception cref="T:System.ArgumentNullException">The <paramref name="exception"/> argument is null (Nothing in Visual Basic).</exception>
1248 <exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
1249 <exception cref="T:System.InvalidOperationException">The task has already completed.</exception>
1250 </member>
1251 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetNotificationForWaitCompletion(System.Boolean)">
1252 <summary>
1253 Called by the debugger to request notification when the first wait operation
1254 (await, Wait, Result, etc.) on this builder's task completes.
1255 </summary>
1256 <param name="enabled">
1257 true to enable notification; false to disable a previously set notification.
1258 </param>
1259 </member>
1260 <member name="P:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Task">
1261 <summary>Gets the <see cref="T:System.Threading.Tasks.Task"/> for this builder.</summary>
1262 <returns>The <see cref="T:System.Threading.Tasks.Task"/> representing the builder's asynchronous operation.</returns>
1263 <exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
1264 </member>
1265 <member name="P:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.ObjectIdForDebugger">
1266 <summary>
1267 Gets an object that may be used to uniquely identify this builder to the debugger.
1268 </summary>
1269 <remarks>
1270 This property lazily instantiates the ID in a non-thread-safe manner.
1271 It must only be used by the debugger, and only in a single-threaded manner
1272 when no other threads are in the middle of accessing this property or this.Task.
1273 </remarks>
1274 </member>
1275 <member name="T:System.Runtime.CompilerServices.AsyncMethodBuilderCore">
1276 <summary>Holds state related to the builder's IAsyncStateMachine.</summary>
1277 <remarks>This is a mutable struct. Be very delicate with it.</remarks>
1278 </member>
1279 <member name="F:System.Runtime.CompilerServices.AsyncMethodBuilderCore.m_stateMachine">
1280 <summary>A reference to the heap-allocated state machine object associated with this builder.</summary>
1281 </member>
1282 <member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start``1(``0@)">
1283 <summary>Initiates the builder's execution with the associated state machine.</summary>
1284 <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
1285 <param name="stateMachine">The state machine instance, passed by reference.</param>
1286 <exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument is null (Nothing in Visual Basic).</exception>
1287 </member>
1288 <member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
1289 <summary>Associates the builder with the state machine it represents.</summary>
1290 <param name="stateMachine">The heap-allocated state machine object.</param>
1291 <exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
1292 <exception cref="T:System.InvalidOperationException">The builder is incorrectly initialized.</exception>
1293 </member>
1294 <member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.GetCompletionAction``2(``0@,``1@)">
1295 <summary>
1296 Gets the Action to use with an awaiter's OnCompleted or UnsafeOnCompleted method.
1297 On first invocation, the supplied state machine will be boxed.
1298 </summary>
1299 <typeparam name="TMethodBuilder">Specifies the type of the method builder used.</typeparam>
1300 <typeparam name="TStateMachine">Specifies the type of the state machine used.</typeparam>
1301 <param name="builder">The builder.</param>
1302 <param name="stateMachine">The state machine.</param>
1303 <returns>An Action to provide to the awaiter.</returns>
1304 </member>
1305 <member name="T:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner">
1306 <summary>Provides the ability to invoke a state machine's MoveNext method under a supplied ExecutionContext.</summary>
1307 </member>
1308 <member name="F:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.m_context">
1309 <summary>The context with which to run MoveNext.</summary>
1310 </member>
1311 <member name="F:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.m_stateMachine">
1312 <summary>The state machine whose MoveNext method should be invoked.</summary>
1313 </member>
1314 <member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.#ctor(System.ExecutionContextLightup)">
1315 <summary>Initializes the runner.</summary>
1316 <param name="context">The context with which to run MoveNext.</param>
1317 </member>
1318 <member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run">
1319 <summary>Invokes MoveNext under the provided context.</summary>
1320 </member>
1321 <member name="F:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.s_invokeMoveNext">
1322 <summary>Cached delegate used with ExecutionContext.Run.</summary>
1323 </member>
1324 <member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.InvokeMoveNext(System.Object)">
1325 <summary>Invokes the MoveNext method on the supplied IAsyncStateMachine.</summary>
1326 <param name="stateMachine">The IAsyncStateMachine machine instance.</param>
1327 </member>
1328 <member name="T:System.Runtime.CompilerServices.AsyncVoidMethodBuilder">
1329 <summary>
1330 Provides a builder for asynchronous methods that return void.
1331 This type is intended for compiler use only.
1332 </summary>
1333 </member>
1334 <member name="F:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.m_synchronizationContext">
1335 <summary>The synchronization context associated with this operation.</summary>
1336 </member>
1337 <member name="F:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.m_coreState">
1338 <summary>State related to the IAsyncStateMachine.</summary>
1339 </member>
1340 <member name="F:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.m_objectIdForDebugger">
1341 <summary>An object used by the debugger to uniquely identify this builder. Lazily initialized.</summary>
1342 </member>
1343 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.#cctor">
1344 <summary>Temporary support for disabling crashing if tasks go unobserved.</summary>
1345 </member>
1346 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.PreventUnobservedTaskExceptions">
1347 <summary>Registers with UnobservedTaskException to suppress exception crashing.</summary>
1348 </member>
1349 <member name="F:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.s_preventUnobservedTaskExceptionsInvoked">
1350 <summary>Non-zero if PreventUnobservedTaskExceptions has already been invoked.</summary>
1351 </member>
1352 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Create">
1353 <summary>Initializes a new <see cref="T:System.Runtime.CompilerServices.AsyncVoidMethodBuilder"/>.</summary>
1354 <returns>The initialized <see cref="T:System.Runtime.CompilerServices.AsyncVoidMethodBuilder"/>.</returns>
1355 </member>
1356 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.#ctor(System.Threading.SynchronizationContext)">
1357 <summary>Initializes the <see cref="T:System.Runtime.CompilerServices.AsyncVoidMethodBuilder"/>.</summary>
1358 <param name="synchronizationContext">The synchronizationContext associated with this operation. This may be null.</param>
1359 </member>
1360 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start``1(``0@)">
1361 <summary>Initiates the builder's execution with the associated state machine.</summary>
1362 <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
1363 <param name="stateMachine">The state machine instance, passed by reference.</param>
1364 <exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
1365 </member>
1366 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
1367 <summary>Associates the builder with the state machine it represents.</summary>
1368 <param name="stateMachine">The heap-allocated state machine object.</param>
1369 <exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
1370 <exception cref="T:System.InvalidOperationException">The builder is incorrectly initialized.</exception>
1371 </member>
1372 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.System#Runtime#CompilerServices#IAsyncMethodBuilder#PreBoxInitialization">
1373 <summary>Perform any initialization necessary prior to lifting the builder to the heap.</summary>
1374 </member>
1375 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.AwaitOnCompleted``2(``0@,``1@)">
1376 <summary>
1377 Schedules the specified state machine to be pushed forward when the specified awaiter completes.
1378 </summary>
1379 <typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
1380 <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
1381 <param name="awaiter">The awaiter.</param>
1382 <param name="stateMachine">The state machine.</param>
1383 </member>
1384 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.AwaitUnsafeOnCompleted``2(``0@,``1@)">
1385 <summary>
1386 Schedules the specified state machine to be pushed forward when the specified awaiter completes.
1387 </summary>
1388 <typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
1389 <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
1390 <param name="awaiter">The awaiter.</param>
1391 <param name="stateMachine">The state machine.</param>
1392 </member>
1393 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult">
1394 <summary>Completes the method builder successfully.</summary>
1395 </member>
1396 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)">
1397 <summary>Faults the method builder with an exception.</summary>
1398 <param name="exception">The exception that is the cause of this fault.</param>
1399 <exception cref="T:System.ArgumentNullException">The <paramref name="exception"/> argument is null (Nothing in Visual Basic).</exception>
1400 <exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
1401 </member>
1402 <member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.NotifySynchronizationContextOfCompletion">
1403 <summary>Notifies the current synchronization context that the operation completed.</summary>
1404 </member>
1405 <member name="P:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.ObjectIdForDebugger">
1406 <summary>
1407 Gets an object that may be used to uniquely identify this builder to the debugger.
1408 </summary>
1409 <remarks>
1410 This property lazily instantiates the ID in a non-thread-safe manner.
1411 It must only be used by the debugger and only in a single-threaded manner.
1412 </remarks>
1413 </member>
1414 <member name="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1">
1415 <summary>
1416 Provides a builder for asynchronous methods that return <see cref="T:System.Threading.Tasks.Task`1"/>.
1417 This type is intended for compiler use only.
1418 </summary>
1419 <remarks>
1420 AsyncTaskMethodBuilder{TResult} is a value type, and thus it is copied by value.
1421 Prior to being copied, one of its Task, SetResult, or SetException members must be accessed,
1422 or else the copies may end up building distinct Task instances.
1423 </remarks>
1424 </member>
1425 <member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.s_defaultResultTask">
1426 <summary>A cached task for default(TResult).</summary>
1427 </member>
1428 <member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.m_coreState">
1429 <summary>State related to the IAsyncStateMachine.</summary>
1430 </member>
1431 <member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.m_task">
1432 <summary>The lazily-initialized task.</summary>
1433 <remarks>Must be named m_task for debugger step-over to work correctly.</remarks>
1434 </member>
1435 <member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.m_taskCompletionSource">
1436 <summary>The lazily-initialized task completion source.</summary>
1437 </member>
1438 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.#cctor">
1439 <summary>Temporary support for disabling crashing if tasks go unobserved.</summary>
1440 </member>
1441 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Create">
1442 <summary>Initializes a new <see cref="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder"/>.</summary>
1443 <returns>The initialized <see cref="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder"/>.</returns>
1444 </member>
1445 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start``1(``0@)">
1446 <summary>Initiates the builder's execution with the associated state machine.</summary>
1447 <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
1448 <param name="stateMachine">The state machine instance, passed by reference.</param>
1449 </member>
1450 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
1451 <summary>Associates the builder with the state machine it represents.</summary>
1452 <param name="stateMachine">The heap-allocated state machine object.</param>
1453 <exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
1454 <exception cref="T:System.InvalidOperationException">The builder is incorrectly initialized.</exception>
1455 </member>
1456 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.System#Runtime#CompilerServices#IAsyncMethodBuilder#PreBoxInitialization">
1457 <summary>Perform any initialization necessary prior to lifting the builder to the heap.</summary>
1458 </member>
1459 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AwaitOnCompleted``2(``0@,``1@)">
1460 <summary>
1461 Schedules the specified state machine to be pushed forward when the specified awaiter completes.
1462 </summary>
1463 <typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
1464 <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
1465 <param name="awaiter">The awaiter.</param>
1466 <param name="stateMachine">The state machine.</param>
1467 </member>
1468 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AwaitUnsafeOnCompleted``2(``0@,``1@)">
1469 <summary>
1470 Schedules the specified state machine to be pushed forward when the specified awaiter completes.
1471 </summary>
1472 <typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
1473 <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
1474 <param name="awaiter">The awaiter.</param>
1475 <param name="stateMachine">The state machine.</param>
1476 </member>
1477 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(`0)">
1478 <summary>
1479 Completes the <see cref="T:System.Threading.Tasks.Task`1"/> in the
1480 <see cref="T:System.Threading.Tasks.TaskStatus">RanToCompletion</see> state with the specified result.
1481 </summary>
1482 <param name="result">The result to use to complete the task.</param>
1483 <exception cref="T:System.InvalidOperationException">The task has already completed.</exception>
1484 </member>
1485 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(System.Threading.Tasks.TaskCompletionSource{`0})">
1486 <summary>
1487 Completes the builder by using either the supplied completed task, or by completing
1488 the builder's previously accessed task using default(TResult).
1489 </summary>
1490 <param name="completedTask">A task already completed with the value default(TResult).</param>
1491 <exception cref="T:System.InvalidOperationException">The task has already completed.</exception>
1492 </member>
1493 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(System.Exception)">
1494 <summary>
1495 Completes the <see cref="T:System.Threading.Tasks.Task`1"/> in the
1496 <see cref="T:System.Threading.Tasks.TaskStatus">Faulted</see> state with the specified exception.
1497 </summary>
1498 <param name="exception">The <see cref="T:System.Exception"/> to use to fault the task.</param>
1499 <exception cref="T:System.ArgumentNullException">The <paramref name="exception"/> argument is null (Nothing in Visual Basic).</exception>
1500 <exception cref="T:System.InvalidOperationException">The task has already completed.</exception>
1501 </member>
1502 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetNotificationForWaitCompletion(System.Boolean)">
1503 <summary>
1504 Called by the debugger to request notification when the first wait operation
1505 (await, Wait, Result, etc.) on this builder's task completes.
1506 </summary>
1507 <param name="enabled">
1508 true to enable notification; false to disable a previously set notification.
1509 </param>
1510 <remarks>
1511 This should only be invoked from within an asynchronous method,
1512 and only by the debugger.
1513 </remarks>
1514 </member>
1515 <member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.GetTaskForResult(`0)">
1516 <summary>
1517 Gets a task for the specified result. This will either
1518 be a cached or new task, never null.
1519 </summary>
1520 <param name="result">The result for which we need a task.</param>
1521 <returns>The completed task containing the result.</returns>
1522 </member>
1523 <member name="P:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.CompletionSource">
1524 <summary>Gets the lazily-initialized TaskCompletionSource.</summary>
1525 </member>
1526 <member name="P:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Task">
1527 <summary>Gets the <see cref="T:System.Threading.Tasks.Task`1"/> for this builder.</summary>
1528 <returns>The <see cref="T:System.Threading.Tasks.Task`1"/> representing the builder's asynchronous operation.</returns>
1529 </member>
1530 <member name="P:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.ObjectIdForDebugger">
1531 <summary>
1532 Gets an object that may be used to uniquely identify this builder to the debugger.
1533 </summary>
1534 <remarks>
1535 This property lazily instantiates the ID in a non-thread-safe manner.
1536 It must only be used by the debugger, and only in a single-threaded manner
1537 when no other threads are in the middle of accessing this property or this.Task.
1538 </remarks>
1539 </member>
1540 <member name="T:System.Runtime.CompilerServices.AsyncMethodTaskCache`1">
1541 <summary>Provides a base class used to cache tasks of a specific return type.</summary>
1542 <typeparam name="TResult">Specifies the type of results the cached tasks return.</typeparam>
1543 </member>
1544 <member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.Singleton">
1545 <summary>
1546 A singleton cache for this result type.
1547 This may be null if there are no cached tasks for this TResult.
1548 </summary>
1549 </member>
1550 <member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.CreateCompleted(`0)">
1551 <summary>Creates a non-disposable task.</summary>
1552 <param name="result">The result for the task.</param>
1553 <returns>The cacheable task.</returns>
1554 </member>
1555 <member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.CreateCache">
1556 <summary>Creates a cache.</summary>
1557 <returns>A task cache for this result type.</returns>
1558 </member>
1559 <member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.FromResult(`0)">
1560 <summary>Gets a cached task if one exists.</summary>
1561 <param name="result">The result for which we want a cached task.</param>
1562 <returns>A cached task if one exists; otherwise, null.</returns>
1563 </member>
1564 <member name="T:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodBooleanTaskCache">
1565 <summary>Provides a cache for Boolean tasks.</summary>
1566 </member>
1567 <member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodBooleanTaskCache.m_true">
1568 <summary>A true task.</summary>
1569 </member>
1570 <member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodBooleanTaskCache.m_false">
1571 <summary>A false task.</summary>
1572 </member>
1573 <member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodBooleanTaskCache.FromResult(System.Boolean)">
1574 <summary>Gets a cached task for the Boolean result.</summary>
1575 <param name="result">true or false</param>
1576 <returns>A cached task for the Boolean result.</returns>
1577 </member>
1578 <member name="T:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache">
1579 <summary>Provides a cache for zero Int32 tasks.</summary>
1580 </member>
1581 <member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache.INCLUSIVE_INT32_MIN">
1582 <summary>The minimum value, inclusive, for which we want a cached task.</summary>
1583 </member>
1584 <member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache.EXCLUSIVE_INT32_MAX">
1585 <summary>The maximum value, exclusive, for which we want a cached task.</summary>
1586 </member>
1587 <member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache.Int32Tasks">
1588 <summary>The cache of Task{Int32}.</summary>
1589 </member>
1590 <member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache.CreateInt32Tasks">
1591 <summary>Creates an array of cached tasks for the values in the range [INCLUSIVE_MIN,EXCLUSIVE_MAX).</summary>
1592 </member>
1593 <member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache.FromResult(System.Int32)">
1594 <summary>Gets a cached task for the zero Int32 result.</summary>
1595 <param name="result">The integer value</param>
1596 <returns>A cached task for the Int32 result or null if not cached.</returns>
1597 </member>
1598 <member name="T:System.Runtime.CompilerServices.IAsyncStateMachine">
1599 <summary>
1600 Represents state machines generated for asynchronous methods.
1601 This type is intended for compiler use only.
1602 </summary>
1603 </member>
1604 <member name="M:System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext">
1605 <summary>Moves the state machine to its next state.</summary>
1606 </member>
1607 <member name="M:System.Runtime.CompilerServices.IAsyncStateMachine.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
1608 <summary>Configures the state machine with a heap-allocated replica.</summary>
1609 <param name="stateMachine">The heap-allocated replica.</param>
1610 </member>
1611 <member name="T:System.Runtime.CompilerServices.ICriticalNotifyCompletion">
1612 <summary>
1613 Represents an awaiter used to schedule continuations when an await operation completes.
1614 </summary>
1615 </member>
1616 <member name="T:System.Runtime.CompilerServices.INotifyCompletion">
1617 <summary>
1618 Represents an operation that will schedule continuations when the operation completes.
1619 </summary>
1620 </member>
1621 <member name="M:System.Runtime.CompilerServices.INotifyCompletion.OnCompleted(System.Action)">
1622 <summary>Schedules the continuation action to be invoked when the instance completes.</summary>
1623 <param name="continuation">The action to invoke when the operation completes.</param>
1624 <exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
1625 </member>
1626 <member name="M:System.Runtime.CompilerServices.ICriticalNotifyCompletion.UnsafeOnCompleted(System.Action)">
1627 <summary>Schedules the continuation action to be invoked when the instance completes.</summary>
1628 <param name="continuation">The action to invoke when the operation completes.</param>
1629 <exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
1630 <remarks>Unlike OnCompleted, UnsafeOnCompleted need not propagate ExecutionContext information.</remarks>
1631 </member>
1632 <member name="T:System.Runtime.CompilerServices.VoidTaskResult">
1633 <summary>Used with Task(of void)</summary>
1634 </member>
1635 <member name="T:System.Threading.Tasks.IThreadPoolWorkItem">
1636 <summary>
1637 An interface similar to the one added in .NET 4.0.
1638 </summary>
1639 </member>
1640 <member name="T:System.OperationCanceledException">
1641 <summary>The exception that is thrown in a thread upon cancellation of an operation that the thread was executing.</summary>
1642 </member>
1643 <member name="M:System.OperationCanceledException.#ctor">
1644 <summary>Initializes the exception.</summary>
1645 </member>
1646 <member name="M:System.OperationCanceledException.#ctor(System.String)">
1647 <summary>Initializes the exception.</summary>
1648 <param name="message">The error message that explains the reason for the exception.</param>
1649 </member>
1650 <member name="M:System.OperationCanceledException.#ctor(System.String,System.Exception)">
1651 <summary>Initializes the exception.</summary>
1652 <param name="message">The error message that explains the reason for the exception.</param>
1653 <param name="innerException">The exception that is the cause of the current exception.</param>
1654 </member>
1655 <member name="M:System.OperationCanceledException.#ctor(System.Threading.CancellationToken)">
1656 <summary>Initializes the exception.</summary>
1657 <param name="token">A cancellation token associated with the operation that was canceled.</param>
1658 </member>
1659 <member name="M:System.OperationCanceledException.#ctor(System.String,System.Threading.CancellationToken)">
1660 <summary>Initializes the exception.</summary>
1661 <param name="message">The error message that explains the reason for the exception.</param>
1662 <param name="token">A cancellation token associated with the operation that was canceled.</param>
1663 </member>
1664 <member name="M:System.OperationCanceledException.#ctor(System.String,System.Exception,System.Threading.CancellationToken)">
1665 <summary>Initializes the exception.</summary>
1666 <param name="message">The error message that explains the reason for the exception.</param>
1667 <param name="innerException">The exception that is the cause of the current exception.</param>
1668 <param name="token">A cancellation token associated with the operation that was canceled.</param>
1669 </member>
1670 <member name="P:System.OperationCanceledException.CancellationToken">
1671 <summary>Gets a token associated with the operation that was canceled.</summary>
1672 </member>
1673 <member name="T:System.Threading.StackCrawlMark">
1674 <summary>
1675 A dummy replacement for the .NET internal class StackCrawlMark.
1676 </summary>
1677 </member>
1678 <member name="T:System.Threading.CancellationToken">
1679 <summary>
1680 Propogates notification that operations should be canceled.
1681 </summary>
1682 <remarks>
1683 <para>
1684 A <see cref="T:System.Threading.CancellationToken"/> may be created directly in an unchangeable canceled or non-canceled state
1685 using the CancellationToken's constructors. However, to have a CancellationToken that can change
1686 from a non-canceled to a canceled state,
1687 <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> must be used.
1688 CancellationTokenSource exposes the associated CancellationToken that may be canceled by the source through its
1689 <see cref="P:System.Threading.CancellationTokenSource.Token">Token</see> property.
1690 </para>
1691 <para>
1692 Once canceled, a token may not transition to a non-canceled state, and a token whose
1693 <see cref="P:System.Threading.CancellationToken.CanBeCanceled"/> is false will never change to one that can be canceled.
1694 </para>
1695 <para>
1696 All members of this struct are thread-safe and may be used concurrently from multiple threads.
1697 </para>
1698 </remarks>
1699 </member>
1700 <member name="M:System.Threading.CancellationToken.#ctor(System.Threading.CancellationTokenSource)">
1701 <summary>
1702 Internal constructor only a CancellationTokenSource should create a CancellationToken
1703 </summary>
1704 </member>
1705 <member name="M:System.Threading.CancellationToken.#ctor(System.Boolean)">
1706 <summary>
1707 Initializes the <see cref="T:System.Threading.CancellationToken">CancellationToken</see>.
1708 </summary>
1709 <param name="canceled">
1710 The canceled state for the token.
1711 </param>
1712 <remarks>
1713 Tokens created with this constructor will remain in the canceled state specified
1714 by the <paramref name="canceled"/> parameter. If <paramref name="canceled"/> is false,
1715 both <see cref="P:System.Threading.CancellationToken.CanBeCanceled"/> and <see cref="P:System.Threading.CancellationToken.IsCancellationRequested"/> will be false.
1716 If <paramref name="canceled"/> is true,
1717 both <see cref="P:System.Threading.CancellationToken.CanBeCanceled"/> and <see cref="P:System.Threading.CancellationToken.IsCancellationRequested"/> will be true.
1718 </remarks>
1719 </member>
1720 <member name="M:System.Threading.CancellationToken.Register(System.Action)">
1721 <summary>
1722 Registers a delegate that will be called when this <see cref="T:System.Threading.CancellationToken">CancellationToken</see> is canceled.
1723 </summary>
1724 <remarks>
1725 <para>
1726 If this token is already in the canceled state, the
1727 delegate will be run immediately and synchronously. Any exception the delegate generates will be
1728 propogated out of this method call.
1729 </para>
1730 </remarks>
1731 <param name="callback">The delegate to be executed when the <see cref="T:System.Threading.CancellationToken">CancellationToken</see> is canceled.</param>
1732 <returns>The <see cref="T:System.Threading.CancellationTokenRegistration"/> instance that can
1733 be used to deregister the callback.</returns>
1734 <exception cref="T:System.ArgumentNullException"><paramref name="callback"/> is null.</exception>
1735 <exception cref="T:System.ObjectDisposedException">The associated <see
1736 cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
1737 </member>
1738 <member name="M:System.Threading.CancellationToken.Register(System.Action,System.Boolean)">
1739 <summary>
1740 Registers a delegate that will be called when this
1741 <see cref="T:System.Threading.CancellationToken">CancellationToken</see> is canceled.
1742 </summary>
1743 <remarks>
1744 <para>
1745 If this token is already in the canceled state, the
1746 delegate will be run immediately and synchronously. Any exception the delegate generates will be
1747 propogated out of this method call.
1748 </para>
1749 </remarks>
1750 <param name="callback">The delegate to be executed when the <see cref="T:System.Threading.CancellationToken">CancellationToken</see> is canceled.</param>
1751 <param name="useSynchronizationContext">A Boolean value that indicates whether to capture
1752 the current <see cref="T:System.Threading.SynchronizationContext">SynchronizationContext</see> and use it
1753 when invoking the <paramref name="callback"/>.</param>
1754 <returns>The <see cref="T:System.Threading.CancellationTokenRegistration"/> instance that can
1755 be used to deregister the callback.</returns>
1756 <exception cref="T:System.ArgumentNullException"><paramref name="callback"/> is null.</exception>
1757 <exception cref="T:System.ObjectDisposedException">The associated <see
1758 cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
1759 </member>
1760 <member name="M:System.Threading.CancellationToken.Register(System.Action{System.Object},System.Object)">
1761 <summary>
1762 Registers a delegate that will be called when this
1763 <see cref="T:System.Threading.CancellationToken">CancellationToken</see> is canceled.
1764 </summary>
1765 <remarks>
1766 <para>
1767 If this token is already in the canceled state, the
1768 delegate will be run immediately and synchronously. Any exception the delegate generates will be
1769 propogated out of this method call.
1770 </para>
1771 </remarks>
1772 <param name="callback">The delegate to be executed when the <see cref="T:System.Threading.CancellationToken">CancellationToken</see> is canceled.</param>
1773 <param name="state">The state to pass to the <paramref name="callback"/> when the delegate is invoked. This may be null.</param>
1774 <returns>The <see cref="T:System.Threading.CancellationTokenRegistration"/> instance that can
1775 be used to deregister the callback.</returns>
1776 <exception cref="T:System.ArgumentNullException"><paramref name="callback"/> is null.</exception>
1777 <exception cref="T:System.ObjectDisposedException">The associated <see
1778 cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
1779 </member>
1780 <member name="M:System.Threading.CancellationToken.Register(System.Action{System.Object},System.Object,System.Boolean)">
1781 <summary>
1782 Registers a delegate that will be called when this
1783 <see cref="T:System.Threading.CancellationToken">CancellationToken</see> is canceled.
1784 </summary>
1785 <remarks>
1786 <para>
1787 If this token is already in the canceled state, the
1788 delegate will be run immediately and synchronously. Any exception the delegate generates will be
1789 propogated out of this method call.
1790 </para>
1791 </remarks>
1792 <param name="callback">The delegate to be executed when the <see cref="T:System.Threading.CancellationToken">CancellationToken</see> is canceled.</param>
1793 <param name="state">The state to pass to the <paramref name="callback"/> when the delegate is invoked. This may be null.</param>
1794 <param name="useSynchronizationContext">A Boolean value that indicates whether to capture
1795 the current <see cref="T:System.Threading.SynchronizationContext">SynchronizationContext</see> and use it
1796 when invoking the <paramref name="callback"/>.</param>
1797 <returns>The <see cref="T:System.Threading.CancellationTokenRegistration"/> instance that can
1798 be used to deregister the callback.</returns>
1799 <exception cref="T:System.ArgumentNullException"><paramref name="callback"/> is null.</exception>
1800 <exception cref="T:System.ObjectDisposedException">The associated <see
1801 cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
1802 </member>
1803 <member name="M:System.Threading.CancellationToken.Equals(System.Threading.CancellationToken)">
1804 <summary>
1805 Determines whether the current <see cref="T:System.Threading.CancellationToken">CancellationToken</see> instance is equal to the
1806 specified token.
1807 </summary>
1808 <param name="other">The other <see cref="T:System.Threading.CancellationToken">CancellationToken</see> to which to compare this
1809 instance.</param>
1810 <returns>True if the instances are equal; otherwise, false. Two tokens are equal if they are associated
1811 with the same <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> or if they were both constructed
1812 from public CancellationToken constructors and their <see cref="P:System.Threading.CancellationToken.IsCancellationRequested"/> values are equal.</returns>
1813 </member>
1814 <member name="M:System.Threading.CancellationToken.Equals(System.Object)">
1815 <summary>
1816 Determines whether the current <see cref="T:System.Threading.CancellationToken">CancellationToken</see> instance is equal to the
1817 specified <see cref="T:System.Object"/>.
1818 </summary>
1819 <param name="other">The other object to which to compare this instance.</param>
1820 <returns>True if <paramref name="other"/> is a <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
1821 and if the two instances are equal; otherwise, false. Two tokens are equal if they are associated
1822 with the same <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> or if they were both constructed
1823 from public CancellationToken constructors and their <see cref="P:System.Threading.CancellationToken.IsCancellationRequested"/> values are equal.</returns>
1824 <exception cref="T:System.ObjectDisposedException">An associated <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
1825 </member>
1826 <member name="M:System.Threading.CancellationToken.GetHashCode">
1827 <summary>
1828 Serves as a hash function for a <see cref="T:System.Threading.CancellationToken">CancellationToken</see>.
1829 </summary>
1830 <returns>A hash code for the current <see cref="T:System.Threading.CancellationToken">CancellationToken</see> instance.</returns>
1831 </member>
1832 <member name="M:System.Threading.CancellationToken.op_Equality(System.Threading.CancellationToken,System.Threading.CancellationToken)">
1833 <summary>
1834 Determines whether two <see cref="T:System.Threading.CancellationToken">CancellationToken</see> instances are equal.
1835 </summary>
1836 <param name="left">The first instance.</param>
1837 <param name="right">The second instance.</param>
1838 <returns>True if the instances are equal; otherwise, false.</returns>
1839 <exception cref="T:System.ObjectDisposedException">An associated <see
1840 cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
1841 </member>
1842 <member name="M:System.Threading.CancellationToken.op_Inequality(System.Threading.CancellationToken,System.Threading.CancellationToken)">
1843 <summary>
1844 Determines whether two <see cref="T:System.Threading.CancellationToken">CancellationToken</see> instances are not equal.
1845 </summary>
1846 <param name="left">The first instance.</param>
1847 <param name="right">The second instance.</param>
1848 <returns>True if the instances are not equal; otherwise, false.</returns>
1849 <exception cref="T:System.ObjectDisposedException">An associated <see
1850 cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
1851 </member>
1852 <member name="M:System.Threading.CancellationToken.ThrowIfCancellationRequested">
1853 <summary>
1854 Throws a <see cref="T:System.OperationCanceledException">OperationCanceledException</see> if
1855 this token has had cancellation requested.
1856 </summary>
1857 <remarks>
1858 This method provides functionality equivalent to:
1859 <code>
1860 if (token.IsCancellationRequested)
1861 throw new OperationCanceledException(token);
1862 </code>
1863 </remarks>
1864 <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
1865 <exception cref="T:System.ObjectDisposedException">The associated <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
1866 </member>
1867 <member name="P:System.Threading.CancellationToken.None">
1868 <summary>
1869 Returns an empty CancellationToken value.
1870 </summary>
1871 <remarks>
1872 The <see cref="T:System.Threading.CancellationToken"/> value returned by this property will be non-cancelable by default.
1873 </remarks>
1874 </member>
1875 <member name="P:System.Threading.CancellationToken.IsCancellationRequested">
1876 <summary>
1877 Gets whether cancellation has been requested for this token.
1878 </summary>
1879 <value>Whether cancellation has been requested for this token.</value>
1880 <remarks>
1881 <para>
1882 This property indicates whether cancellation has been requested for this token,
1883 either through the token initially being construted in a canceled state, or through
1884 calling <see cref="M:System.Threading.CancellationTokenSource.Cancel">Cancel</see>
1885 on the token's associated <see cref="T:System.Threading.CancellationTokenSource"/>.
1886 </para>
1887 <para>
1888 If this property is true, it only guarantees that cancellation has been requested.
1889 It does not guarantee that every registered handler
1890 has finished executing, nor that cancellation requests have finished propagating
1891 to all registered handlers. Additional synchronization may be required,
1892 particularly in situations where related objects are being canceled concurrently.
1893 </para>
1894 </remarks>
1895 </member>
1896 <member name="P:System.Threading.CancellationToken.CanBeCanceled">
1897 <summary>
1898 Gets whether this token is capable of being in the canceled state.
1899 </summary>
1900 <remarks>
1901 If CanBeCanceled returns false, it is guaranteed that the token will never transition
1902 into a canceled state, meaning that <see cref="P:System.Threading.CancellationToken.IsCancellationRequested"/> will never
1903 return true.
1904 </remarks>
1905 </member>
1906 <member name="P:System.Threading.CancellationToken.WaitHandle">
1907 <summary>
1908 Gets a <see cref="T:System.Threading.WaitHandle"/> that is signaled when the token is canceled.</summary>
1909 <remarks>
1910 Accessing this property causes a <see cref="T:System.Threading.WaitHandle">WaitHandle</see>
1911 to be instantiated. It is preferable to only use this property when necessary, and to then
1912 dispose the associated <see cref="T:System.Threading.CancellationTokenSource"/> instance at the earliest opportunity (disposing
1913 the source will dispose of this allocated handle). The handle should not be closed or disposed directly.
1914 </remarks>
1915 <exception cref="T:System.ObjectDisposedException">The associated <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
1916 </member>
1917 <member name="T:System.Threading.CancellationTokenRegistration">
1918 <summary>
1919 Represents a callback delegate that has been registered with a <see cref="T:System.Threading.CancellationToken">CancellationToken</see>.
1920 </summary>
1921 <remarks>
1922 To unregister a callback, dispose the corresponding Registration instance.
1923 </remarks>
1924 </member>
1925 <member name="M:System.Threading.CancellationTokenRegistration.TryDeregister">
1926 <summary>
1927 Attempts to deregister the item. If it's already being run, this may fail.
1928 Entails a full memory fence.
1929 </summary>
1930 <returns>True if the callback was found and deregistered, false otherwise.</returns>
1931 </member>
1932 <member name="M:System.Threading.CancellationTokenRegistration.Dispose">
1933 <summary>
1934 Disposes of the registration and unregisters the target callback from the associated
1935 <see cref="T:System.Threading.CancellationToken">CancellationToken</see>.
1936 If the target callback is currently executing this method will wait until it completes, except
1937 in the degenerate cases where a callback method deregisters itself.
1938 </summary>
1939 </member>
1940 <member name="M:System.Threading.CancellationTokenRegistration.op_Equality(System.Threading.CancellationTokenRegistration,System.Threading.CancellationTokenRegistration)">
1941 <summary>
1942 Determines whether two <see
1943 cref="T:System.Threading.CancellationTokenRegistration">CancellationTokenRegistration</see>
1944 instances are equal.
1945 </summary>
1946 <param name="left">The first instance.</param>
1947 <param name="right">The second instance.</param>
1948 <returns>True if the instances are equal; otherwise, false.</returns>
1949 </member>
1950 <member name="M:System.Threading.CancellationTokenRegistration.op_Inequality(System.Threading.CancellationTokenRegistration,System.Threading.CancellationTokenRegistration)">
1951 <summary>
1952 Determines whether two <see cref="T:System.Threading.CancellationTokenRegistration">CancellationTokenRegistration</see> instances are not equal.
1953 </summary>
1954 <param name="left">The first instance.</param>
1955 <param name="right">The second instance.</param>
1956 <returns>True if the instances are not equal; otherwise, false.</returns>
1957 </member>
1958 <member name="M:System.Threading.CancellationTokenRegistration.Equals(System.Object)">
1959 <summary>
1960 Determines whether the current <see cref="T:System.Threading.CancellationTokenRegistration">CancellationTokenRegistration</see> instance is equal to the
1961 specified <see cref="T:System.Object"/>.
1962 </summary>
1963 <param name="obj">The other object to which to compare this instance.</param>
1964 <returns>True, if both this and <paramref name="obj"/> are equal. False, otherwise.
1965 Two <see cref="T:System.Threading.CancellationTokenRegistration">CancellationTokenRegistration</see> instances are equal if
1966 they both refer to the output of a single call to the same Register method of a
1967 <see cref="T:System.Threading.CancellationToken">CancellationToken</see>.
1968 </returns>
1969 </member>
1970 <member name="M:System.Threading.CancellationTokenRegistration.Equals(System.Threading.CancellationTokenRegistration)">
1971 <summary>
1972 Determines whether the current <see cref="T:System.Threading.CancellationToken">CancellationToken</see> instance is equal to the
1973 specified <see cref="T:System.Object"/>.
1974 </summary>
1975 <param name="other">The other <see cref="T:System.Threading.CancellationTokenRegistration">CancellationTokenRegistration</see> to which to compare this instance.</param>
1976 <returns>True, if both this and <paramref name="other"/> are equal. False, otherwise.
1977 Two <see cref="T:System.Threading.CancellationTokenRegistration">CancellationTokenRegistration</see> instances are equal if
1978 they both refer to the output of a single call to the same Register method of a
1979 <see cref="T:System.Threading.CancellationToken">CancellationToken</see>.
1980 </returns>
1981 </member>
1982 <member name="M:System.Threading.CancellationTokenRegistration.GetHashCode">
1983 <summary>
1984 Serves as a hash function for a <see cref="T:System.Threading.CancellationTokenRegistration">CancellationTokenRegistration.</see>.
1985 </summary>
1986 <returns>A hash code for the current <see cref="T:System.Threading.CancellationTokenRegistration">CancellationTokenRegistration</see> instance.</returns>
1987 </member>
1988 <member name="T:System.Threading.CancellationTokenSource">
1989 <summary>
1990 Signals to a <see cref="T:System.Threading.CancellationToken"/> that it should be canceled.
1991 </summary>
1992 <remarks>
1993 <para>
1994 <see cref="T:System.Threading.CancellationTokenSource"/> is used to instantiate a <see cref="T:System.Threading.CancellationToken"/>
1995 (via the source's <see cref="P:System.Threading.CancellationTokenSource.Token">Token</see> property)
1996 that can be handed to operations that wish to be notified of cancellation or that can be used to
1997 register asynchronous operations for cancellation. That token may have cancellation requested by
1998 calling to the source's <see cref="M:System.Threading.CancellationTokenSource.Cancel">Cancel</see>
1999 method.
2000 </para>
2001 <para>
2002 All members of this class, except <see cref="M:System.Threading.CancellationTokenSource.Dispose">Dispose</see>, are thread-safe and may be used
2003 concurrently from multiple threads.
2004 </para>
2005 </remarks>
2006 </member>
2007 <member name="F:System.Threading.CancellationTokenSource.m_threadIDExecutingCallbacks">
2008 The ID of the thread currently executing the main body of CTS.Cancel()
2009 this helps us to know if a call to ctr.Dispose() is running 'within' a cancellation callback.
2010 This is updated as we move between the main thread calling cts.Cancel() and any syncContexts that are used to
2011 actually run the callbacks.
2012 </member>
2013 <member name="M:System.Threading.CancellationTokenSource.#ctor">
2014 <summary>
2015 Initializes the <see cref="T:System.Threading.CancellationTokenSource"/>.
2016 </summary>
2017 </member>
2018 <member name="M:System.Threading.CancellationTokenSource.Cancel">
2019 <summary>
2020 Communicates a request for cancellation.
2021 </summary>
2022 <remarks>
2023 <para>
2024 The associated <see cref="T:System.Threading.CancellationToken"/> will be
2025 notified of the cancellation and will transition to a state where
2026 <see cref="P:System.Threading.CancellationToken.IsCancellationRequested">IsCancellationRequested</see> returns true.
2027 Any callbacks or cancelable operations
2028 registered with the <see cref="T:System.Threading.CancellationToken"/> will be executed.
2029 </para>
2030 <para>
2031 Cancelable operations and callbacks registered with the token should not throw exceptions.
2032 However, this overload of Cancel will aggregate any exceptions thrown into a <see cref="T:System.AggregateException"/>,
2033 such that one callback throwing an exception will not prevent other registered callbacks from being executed.
2034 </para>
2035 <para>
2036 The <see cref="T:System.Threading.ExecutionContext"/> that was captured when each callback was registered
2037 will be reestablished when the callback is invoked.
2038 </para>
2039 </remarks>
2040 <exception cref="T:System.AggregateException">An aggregate exception containing all the exceptions thrown
2041 by the registered callbacks on the associated <see cref="T:System.Threading.CancellationToken"/>.</exception>
2042 <exception cref="T:System.ObjectDisposedException">This <see cref="T:System.Threading.CancellationTokenSource"/> has been disposed.</exception>
2043 </member>
2044 <member name="M:System.Threading.CancellationTokenSource.Cancel(System.Boolean)">
2045 <summary>
2046 Communicates a request for cancellation.
2047 </summary>
2048 <remarks>
2049 <para>
2050 The associated <see cref="T:System.Threading.CancellationToken"/> will be
2051 notified of the cancellation and will transition to a state where
2052 <see cref="P:System.Threading.CancellationToken.IsCancellationRequested">IsCancellationRequested</see> returns true.
2053 Any callbacks or cancelable operations
2054 registered with the <see cref="T:System.Threading.CancellationToken"/> will be executed.
2055 </para>
2056 <para>
2057 Cancelable operations and callbacks registered with the token should not throw exceptions.
2058 If <paramref name="throwOnFirstException"/> is true, an exception will immediately propagate out of the
2059 call to Cancel, preventing the remaining callbacks and cancelable operations from being processed.
2060 If <paramref name="throwOnFirstException"/> is false, this overload will aggregate any
2061 exceptions thrown into a <see cref="T:System.AggregateException"/>,
2062 such that one callback throwing an exception will not prevent other registered callbacks from being executed.
2063 </para>
2064 <para>
2065 The <see cref="T:System.Threading.ExecutionContext"/> that was captured when each callback was registered
2066 will be reestablished when the callback is invoked.
2067 </para>
2068 </remarks>
2069 <param name="throwOnFirstException">Specifies whether exceptions should immediately propagate.</param>
2070 <exception cref="T:System.AggregateException">An aggregate exception containing all the exceptions thrown
2071 by the registered callbacks on the associated <see cref="T:System.Threading.CancellationToken"/>.</exception>
2072 <exception cref="T:System.ObjectDisposedException">This <see cref="T:System.Threading.CancellationTokenSource"/> has been disposed.</exception>
2073 </member>
2074 <member name="M:System.Threading.CancellationTokenSource.Dispose">
2075 <summary>
2076 Releases the resources used by this <see cref="T:System.Threading.CancellationTokenSource" />.
2077 </summary>
2078 <remarks>
2079 This method is not thread-safe for any other concurrent calls.
2080 </remarks>
2081 </member>
2082 <member name="M:System.Threading.CancellationTokenSource.ThrowIfDisposed">
2083 <summary>
2084 Throws an exception if the source has been disposed.
2085 </summary>
2086 </member>
2087 <member name="M:System.Threading.CancellationTokenSource.InternalGetStaticSource(System.Boolean)">
2088 <summary>
2089 InternalGetStaticSource()
2090 </summary>
2091 <param name="set">Whether the source should be set.</param>
2092 <returns>A static source to be shared among multiple tokens.</returns>
2093 </member>
2094 <member name="M:System.Threading.CancellationTokenSource.InternalRegister(System.Action{System.Object},System.Object,System.Threading.SynchronizationContext)">
2095 <summary>
2096 Registers a callback object. If cancellation has already occurred, the
2097 callback will have been run by the time this method returns.
2098 </summary>
2099 </member>
2100 <member name="M:System.Threading.CancellationTokenSource.NotifyCancellation(System.Boolean)">
2101 <summary>
2102
2103 </summary>
2104 </member>
2105 <member name="M:System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(System.Boolean)">
2106 <summary>
2107 Invoke the Canceled event.
2108 </summary>
2109 <remarks>
2110 The handlers are invoked synchronously in LIFO order.
2111 </remarks>
2112 </member>
2113 <member name="M:System.Threading.CancellationTokenSource.CreateLinkedTokenSource(System.Threading.CancellationToken,System.Threading.CancellationToken)">
2114 <summary>
2115 Creates a <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> that will be in the canceled state
2116 when any of the source tokens are in the canceled state.
2117 </summary>
2118 <param name="token1">The first <see cref="T:System.Threading.CancellationToken">CancellationToken</see> to observe.</param>
2119 <param name="token2">The second <see cref="T:System.Threading.CancellationToken">CancellationToken</see> to observe.</param>
2120 <returns>A <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> that is linked
2121 to the source tokens.</returns>
2122 <exception cref="T:System.ObjectDisposedException">A <see
2123 cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> associated with
2124 one of the source tokens has been disposed.</exception>
2125 </member>
2126 <member name="M:System.Threading.CancellationTokenSource.CreateLinkedTokenSource(System.Threading.CancellationToken[])">
2127 <summary>
2128 Creates a <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> that will be in the canceled state
2129 when any of the source tokens are in the canceled state.
2130 </summary>
2131 <param name="tokens">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see> instances to observe.</param>
2132 <returns>A <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> that is linked
2133 to the source tokens.</returns>
2134 <exception cref="T:System.ArgumentNullException"><paramref name="tokens"/> is null.</exception>
2135 <exception cref="T:System.ObjectDisposedException">A <see
2136 cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> associated with
2137 one of the source tokens has been disposed.</exception>
2138 </member>
2139 <member name="P:System.Threading.CancellationTokenSource.IsCancellationRequested">
2140 <summary>
2141 Gets whether cancellation has been requested for this <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see>.
2142 </summary>
2143 <value>Whether cancellation has been requested for this <see cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see>.</value>
2144 <remarks>
2145 <para>
2146 This property indicates whether cancellation has been requested for this token source, such as
2147 due to a call to its
2148 <see cref="M:System.Threading.CancellationTokenSource.Cancel">Cancel</see> method.
2149 </para>
2150 <para>
2151 If this property returns true, it only guarantees that cancellation has been requested. It does not
2152 guarantee that every handler registered with the corresponding token has finished executing, nor
2153 that cancellation requests have finished propagating to all registered handlers. Additional
2154 synchronization may be required, particularly in situations where related objects are being
2155 canceled concurrently.
2156 </para>
2157 </remarks>
2158 </member>
2159 <member name="P:System.Threading.CancellationTokenSource.IsCancellationCompleted">
2160 <summary>
2161 A simple helper to determine whether cancellation has finished.
2162 </summary>
2163 </member>
2164 <member name="P:System.Threading.CancellationTokenSource.IsDisposed">
2165 <summary>
2166 A simple helper to determine whether disposal has occured.
2167 </summary>
2168 </member>
2169 <member name="P:System.Threading.CancellationTokenSource.ThreadIDExecutingCallbacks">
2170 <summary>
2171 The ID of the thread that is running callbacks.
2172 </summary>
2173 </member>
2174 <member name="P:System.Threading.CancellationTokenSource.Token">
2175 <summary>
2176 Gets the <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
2177 associated with this <see cref="T:System.Threading.CancellationTokenSource"/>.
2178 </summary>
2179 <value>The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
2180 associated with this <see cref="T:System.Threading.CancellationTokenSource"/>.</value>
2181 <exception cref="T:System.ObjectDisposedException">The token source has been
2182 disposed.</exception>
2183 </member>
2184 <member name="P:System.Threading.CancellationTokenSource.CanBeCanceled">
2185 <summary>
2186
2187 </summary>
2188 </member>
2189 <member name="P:System.Threading.CancellationTokenSource.WaitHandle">
2190 <summary>
2191
2192 </summary>
2193 </member>
2194 <member name="P:System.Threading.CancellationTokenSource.ExecutingCallback">
2195 <summary>
2196 The currently executing callback
2197 </summary>
2198 </member>
2199 <member name="T:System.Threading.CancellationCallbackInfo">
2200 <summary>
2201 A helper class for collating the various bits of information required to execute
2202 cancellation callbacks.
2203 </summary>
2204 </member>
2205 <member name="M:System.Threading.CancellationCallbackInfo.ExecuteCallback">
2206 <summary>
2207 InternalExecuteCallbackSynchronously_GeneralPath
2208 This will be called on the target synchronization context, however, we still need to restore the required execution context
2209 </summary>
2210 </member>
2211 <member name="T:System.Threading.SparselyPopulatedArray`1">
2212 <summary>
2213 A sparsely populated array. Elements can be sparse and some null, but this allows for
2214 lock-free additions and growth, and also for constant time removal (by nulling out).
2215 </summary>
2216 <typeparam name="T">The kind of elements contained within.</typeparam>
2217 </member>
2218 <member name="M:System.Threading.SparselyPopulatedArray`1.#ctor(System.Int32)">
2219 <summary>
2220 Allocates a new array with the given initial size.
2221 </summary>
2222 <param name="initialSize">How many array slots to pre-allocate.</param>
2223 </member>
2224 <member name="M:System.Threading.SparselyPopulatedArray`1.Add(`0)">
2225 <summary>
2226 Adds an element in the first available slot, beginning the search from the tail-to-head.
2227 If no slots are available, the array is grown. The method doesn't return until successful.
2228 </summary>
2229 <param name="element">The element to add.</param>
2230 <returns>Information about where the add happened, to enable O(1) deregistration.</returns>
2231 </member>
2232 <member name="P:System.Threading.SparselyPopulatedArray`1.Tail">
2233 <summary>
2234 The tail of the doubly linked list.
2235 </summary>
2236 </member>
2237 <member name="T:System.Threading.SparselyPopulatedArrayAddInfo`1">
2238 <summary>
2239 A struct to hold a link to the exact spot in an array an element was inserted, enabling
2240 constant time removal later on.
2241 </summary>
2242 </member>
2243 <member name="T:System.Threading.SparselyPopulatedArrayFragment`1">
2244 <summary>
2245 A fragment of a sparsely populated array, doubly linked.
2246 </summary>
2247 <typeparam name="T">The kind of elements contained within.</typeparam>
2248 </member>
2249 <member name="T:System.Threading.LazyInitializer">
2250 <summary>
2251 Provides lazy initialization routines.
2252 </summary>
2253 <remarks>
2254 These routines avoid needing to allocate a dedicated, lazy-initialization instance, instead using
2255 references to ensure targets have been initialized as they are accessed.
2256 </remarks>
2257 </member>
2258 <member name="M:System.Threading.LazyInitializer.EnsureInitialized``1(``0@)">
2259 <summary>
2260 Initializes a target reference type with the type's default constructor if the target has not
2261 already been initialized.
2262 </summary>
2263 <typeparam name="T">The refence type of the reference to be initialized.</typeparam>
2264 <param name="target">A reference of type <typeparamref name="T"/> to initialize if it has not
2265 already been initialized.</param>
2266 <returns>The initialized reference of type <typeparamref name="T"/>.</returns>
2267 <exception cref="T:System.MissingMemberException">Type <typeparamref name="T"/> does not have a default
2268 constructor.</exception>
2269 <exception cref="T:System.MemberAccessException">
2270 Permissions to access the constructor of type <typeparamref name="T"/> were missing.
2271 </exception>
2272 <remarks>
2273 <para>
2274 This method may only be used on reference types. To ensure initialization of value
2275 types, see other overloads of EnsureInitialized.
2276 </para>
2277 <para>
2278 This method may be used concurrently by multiple threads to initialize <paramref name="target"/>.
2279 In the event that multiple threads access this method concurrently, multiple instances of <typeparamref name="T"/>
2280 may be created, but only one will be stored into <paramref name="target"/>. In such an occurrence, this method will not dispose of the
2281 objects that were not stored. If such objects must be disposed, it is up to the caller to determine
2282 if an object was not used and to then dispose of the object appropriately.
2283 </para>
2284 </remarks>
2285 </member>
2286 <member name="M:System.Threading.LazyInitializer.EnsureInitialized``1(``0@,System.Func{``0})">
2287 <summary>
2288 Initializes a target reference type using the specified function if it has not already been
2289 initialized.
2290 </summary>
2291 <typeparam name="T">The reference type of the reference to be initialized.</typeparam>
2292 <param name="target">The reference of type <typeparamref name="T"/> to initialize if it has not
2293 already been initialized.</param>
2294 <param name="valueFactory">The <see cref="T:System.Func{T}"/> invoked to initialize the
2295 reference.</param>
2296 <returns>The initialized reference of type <typeparamref name="T"/>.</returns>
2297 <exception cref="T:System.MissingMemberException">Type <typeparamref name="T"/> does not have a
2298 default constructor.</exception>
2299 <exception cref="T:System.InvalidOperationException"><paramref name="valueFactory"/> returned
2300 null.</exception>
2301 <remarks>
2302 <para>
2303 This method may only be used on reference types, and <paramref name="valueFactory"/> may
2304 not return a null reference (Nothing in Visual Basic). To ensure initialization of value types or
2305 to allow null reference types, see other overloads of EnsureInitialized.
2306 </para>
2307 <para>
2308 This method may be used concurrently by multiple threads to initialize <paramref name="target"/>.
2309 In the event that multiple threads access this method concurrently, multiple instances of <typeparamref name="T"/>
2310 may be created, but only one will be stored into <paramref name="target"/>. In such an occurrence, this method will not dispose of the
2311 objects that were not stored. If such objects must be disposed, it is up to the caller to determine
2312 if an object was not used and to then dispose of the object appropriately.
2313 </para>
2314 </remarks>
2315 </member>
2316 <member name="M:System.Threading.LazyInitializer.EnsureInitializedCore``1(``0@,System.Func{``0})">
2317 <summary>
2318 Initialize the target using the given delegate (slow path).
2319 </summary>
2320 <typeparam name="T">The reference type of the reference to be initialized.</typeparam>
2321 <param name="target">The variable that need to be initialized</param>
2322 <param name="valueFactory">The delegate that will be executed to initialize the target</param>
2323 <returns>The initialized variable</returns>
2324 </member>
2325 <member name="M:System.Threading.LazyInitializer.EnsureInitialized``1(``0@,System.Boolean@,System.Object@)">
2326 <summary>
2327 Initializes a target reference or value type with its default constructor if it has not already
2328 been initialized.
2329 </summary>
2330 <typeparam name="T">The type of the reference to be initialized.</typeparam>
2331 <param name="target">A reference or value of type <typeparamref name="T"/> to initialize if it
2332 has not already been initialized.</param>
2333 <param name="initialized">A reference to a boolean that determines whether the target has already
2334 been initialized.</param>
2335 <param name="syncLock">A reference to an object used as the mutually exclusive lock for initializing
2336 <paramref name="target"/>.</param>
2337 <returns>The initialized value of type <typeparamref name="T"/>.</returns>
2338 </member>
2339 <member name="M:System.Threading.LazyInitializer.EnsureInitialized``1(``0@,System.Boolean@,System.Object@,System.Func{``0})">
2340 <summary>
2341 Initializes a target reference or value type with a specified function if it has not already been
2342 initialized.
2343 </summary>
2344 <typeparam name="T">The type of the reference to be initialized.</typeparam>
2345 <param name="target">A reference or value of type <typeparamref name="T"/> to initialize if it
2346 has not already been initialized.</param>
2347 <param name="initialized">A reference to a boolean that determines whether the target has already
2348 been initialized.</param>
2349 <param name="syncLock">A reference to an object used as the mutually exclusive lock for initializing
2350 <paramref name="target"/>.</param>
2351 <param name="valueFactory">The <see cref="T:System.Func{T}"/> invoked to initialize the
2352 reference or value.</param>
2353 <returns>The initialized value of type <typeparamref name="T"/>.</returns>
2354 </member>
2355 <member name="M:System.Threading.LazyInitializer.EnsureInitializedCore``1(``0@,System.Boolean@,System.Object@,System.Func{``0})">
2356 <summary>
2357 Ensure the target is initialized and return the value (slow path). This overload permits nulls
2358 and also works for value type targets. Uses the supplied function to create the value.
2359 </summary>
2360 <typeparam name="T">The type of target.</typeparam>
2361 <param name="target">A reference to the target to be initialized.</param>
2362 <param name="initialized">A reference to a location tracking whether the target has been initialized.</param>
2363 <param name="syncLock">A reference to a location containing a mutual exclusive lock.</param>
2364 <param name="valueFactory">
2365 The <see cref="T:System.Func{T}"/> to invoke in order to produce the lazily-initialized value.
2366 </param>
2367 <returns>The initialized object.</returns>
2368 </member>
2369 <member name="T:System.Threading.ManualResetEventSlim">
2370 <summary>
2371 Provides a slimmed down version of <see cref="T:System.Threading.ManualResetEvent"/>.
2372 </summary>
2373 <remarks>
2374 All public and protected members of <see cref="T:System.Threading.ManualResetEventSlim"/> are thread-safe and may be used
2375 concurrently from multiple threads, with the exception of Dispose, which
2376 must only be used when all other operations on the <see cref="T:System.Threading.ManualResetEventSlim"/> have
2377 completed, and Reset, which should only be used when no other threads are
2378 accessing the event.
2379 </remarks>
2380 </member>
2381 <member name="M:System.Threading.ManualResetEventSlim.#ctor">
2382 <summary>
2383 Initializes a new instance of the <see cref="T:System.Threading.ManualResetEventSlim"/>
2384 class with an initial state of nonsignaled.
2385 </summary>
2386 </member>
2387 <member name="M:System.Threading.ManualResetEventSlim.#ctor(System.Boolean)">
2388 <summary>
2389 Initializes a new instance of the <see cref="T:System.Threading.ManualResetEventSlim"/>
2390 class with a Boolen value indicating whether to set the intial state to signaled.
2391 </summary>
2392 <param name="initialState">true to set the initial state signaled; false to set the initial state
2393 to nonsignaled.</param>
2394 </member>
2395 <member name="M:System.Threading.ManualResetEventSlim.#ctor(System.Boolean,System.Int32)">
2396 <summary>
2397 Initializes a new instance of the <see cref="T:System.Threading.ManualResetEventSlim"/>
2398 class with a Boolen value indicating whether to set the intial state to signaled and a specified
2399 spin count.
2400 </summary>
2401 <param name="initialState">true to set the initial state to signaled; false to set the initial state
2402 to nonsignaled.</param>
2403 <param name="spinCount">The number of spin waits that will occur before falling back to a true
2404 wait.</param>
2405 <exception cref="T:ArgumentOutOfRangeException"><paramref name="spinCount"/> is less than
2406 0 or greater than the maximum allowed value.</exception>
2407 </member>
2408 <member name="M:System.Threading.ManualResetEventSlim.Initialize(System.Boolean,System.Int32)">
2409 <summary>
2410 Initializes the internal state of the event.
2411 </summary>
2412 <param name="initialState">Whether the event is set initially or not.</param>
2413 <param name="spinCount">The spin count that decides when the event will block.</param>
2414 </member>
2415 <member name="M:System.Threading.ManualResetEventSlim.EnsureLockObjectCreated">
2416 <summary>
2417 Helper to ensure the lock object is created before first use.
2418 </summary>
2419 </member>
2420 <member name="M:System.Threading.ManualResetEventSlim.LazyInitializeEvent">
2421 <summary>
2422 This method lazily initializes the event object. It uses CAS to guarantee that
2423 many threads racing to call this at once don't result in more than one event
2424 being stored and used. The event will be signaled or unsignaled depending on
2425 the state of the thin-event itself, with synchronization taken into account.
2426 </summary>
2427 <returns>True if a new event was created and stored, false otherwise.</returns>
2428 </member>
2429 <member name="M:System.Threading.ManualResetEventSlim.Set">
2430 <summary>
2431 Sets the state of the event to signaled, which allows one or more threads waiting on the event to
2432 proceed.
2433 </summary>
2434 </member>
2435 <member name="M:System.Threading.ManualResetEventSlim.Set(System.Boolean)">
2436 <summary>
2437 Private helper to actually perform the Set.
2438 </summary>
2439 <param name="duringCancellation">Indicates whether we are calling Set() during cancellation.</param>
2440 <exception cref="T:System.OperationCanceledException">The object has been canceled.</exception>
2441 </member>
2442 <member name="M:System.Threading.ManualResetEventSlim.Reset">
2443 <summary>
2444 Sets the state of the event to nonsignaled, which causes threads to block.
2445 </summary>
2446 <remarks>
2447 Unlike most of the members of <see cref="T:System.Threading.ManualResetEventSlim"/>, <see cref="M:System.Threading.ManualResetEventSlim.Reset"/> is not
2448 thread-safe and may not be used concurrently with other members of this instance.
2449 </remarks>
2450 </member>
2451 <member name="M:System.Threading.ManualResetEventSlim.Wait">
2452 <summary>
2453 Blocks the current thread until the current <see cref="T:System.Threading.ManualResetEventSlim"/> is set.
2454 </summary>
2455 <exception cref="T:System.InvalidOperationException">
2456 The maximum number of waiters has been exceeded.
2457 </exception>
2458 <remarks>
2459 The caller of this method blocks indefinitely until the current instance is set. The caller will
2460 return immediately if the event is currently in a set state.
2461 </remarks>
2462 </member>
2463 <member name="M:System.Threading.ManualResetEventSlim.Wait(System.Threading.CancellationToken)">
2464 <summary>
2465 Blocks the current thread until the current <see cref="T:System.Threading.ManualResetEventSlim"/> receives a signal,
2466 while observing a <see cref="T:System.Threading.CancellationToken"/>.
2467 </summary>
2468 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> to
2469 observe.</param>
2470 <exception cref="T:System.InvalidOperationException">
2471 The maximum number of waiters has been exceeded.
2472 </exception>
2473 <exception cref="T:System.OperationCanceledExcepton"><paramref name="cancellationToken"/> was
2474 canceled.</exception>
2475 <remarks>
2476 The caller of this method blocks indefinitely until the current instance is set. The caller will
2477 return immediately if the event is currently in a set state.
2478 </remarks>
2479 </member>
2480 <member name="M:System.Threading.ManualResetEventSlim.Wait(System.TimeSpan)">
2481 <summary>
2482 Blocks the current thread until the current <see cref="T:System.Threading.ManualResetEventSlim"/> is set, using a
2483 <see cref="T:System.TimeSpan"/> to measure the time interval.
2484 </summary>
2485 <param name="timeout">A <see cref="T:System.TimeSpan"/> that represents the number of milliseconds
2486 to wait, or a <see cref="T:System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely.
2487 </param>
2488 <returns>true if the <see cref="T:System.Threading.ManualResetEventSlim"/> was set; otherwise,
2489 false.</returns>
2490 <exception cref="T:ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative
2491 number other than -1 milliseconds, which represents an infinite time-out -or- timeout is greater
2492 than <see cref="F:System.Int32.MaxValue"/>.</exception>
2493 <exception cref="T:System.InvalidOperationException">
2494 The maximum number of waiters has been exceeded.
2495 </exception>
2496 </member>
2497 <member name="M:System.Threading.ManualResetEventSlim.Wait(System.TimeSpan,System.Threading.CancellationToken)">
2498 <summary>
2499 Blocks the current thread until the current <see cref="T:System.Threading.ManualResetEventSlim"/> is set, using a
2500 <see cref="T:System.TimeSpan"/> to measure the time interval, while observing a <see cref="T:System.Threading.CancellationToken"/>.
2501 </summary>
2502 <param name="timeout">A <see cref="T:System.TimeSpan"/> that represents the number of milliseconds
2503 to wait, or a <see cref="T:System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely.
2504 </param>
2505 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> to
2506 observe.</param>
2507 <returns>true if the <see cref="T:System.Threading.ManualResetEventSlim"/> was set; otherwise,
2508 false.</returns>
2509 <exception cref="T:ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative
2510 number other than -1 milliseconds, which represents an infinite time-out -or- timeout is greater
2511 than <see cref="F:System.Int32.MaxValue"/>.</exception>
2512 <exception cref="T:System.Threading.OperationCanceledException"><paramref name="cancellationToken"/> was canceled.</exception>
2513 <exception cref="T:System.InvalidOperationException">
2514 The maximum number of waiters has been exceeded.
2515 </exception>
2516 </member>
2517 <member name="M:System.Threading.ManualResetEventSlim.Wait(System.Int32)">
2518 <summary>
2519 Blocks the current thread until the current <see cref="T:System.Threading.ManualResetEventSlim"/> is set, using a
2520 32-bit signed integer to measure the time interval.
2521 </summary>
2522 <param name="millisecondsTimeout">The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite"/>(-1) to wait indefinitely.</param>
2523 <returns>true if the <see cref="T:System.Threading.ManualResetEventSlim"/> was set; otherwise,
2524 false.</returns>
2525 <exception cref="T:ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a
2526 negative number other than -1, which represents an infinite time-out.</exception>
2527 <exception cref="T:System.InvalidOperationException">
2528 The maximum number of waiters has been exceeded.
2529 </exception>
2530 </member>
2531 <member name="M:System.Threading.ManualResetEventSlim.Wait(System.Int32,System.Threading.CancellationToken)">
2532 <summary>
2533 Blocks the current thread until the current <see cref="T:System.Threading.ManualResetEventSlim"/> is set, using a
2534 32-bit signed integer to measure the time interval, while observing a <see cref="T:System.Threading.CancellationToken"/>.
2535 </summary>
2536 <param name="millisecondsTimeout">The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite"/>(-1) to wait indefinitely.</param>
2537 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> to
2538 observe.</param>
2539 <returns>true if the <see cref="T:System.Threading.ManualResetEventSlim"/> was set; otherwise,
2540 false.</returns>
2541 <exception cref="T:ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a
2542 negative number other than -1, which represents an infinite time-out.</exception>
2543 <exception cref="T:System.InvalidOperationException">
2544 The maximum number of waiters has been exceeded.
2545 </exception>
2546 <exception cref="T:System.Threading.OperationCanceledException"><paramref name="cancellationToken"/> was canceled.</exception>
2547 </member>
2548 <member name="M:System.Threading.ManualResetEventSlim.Dispose">
2549 <summary>
2550 Releases all resources used by the current instance of <see cref="T:System.Threading.ManualResetEventSlim"/>.
2551 </summary>
2552 <remarks>
2553 Unlike most of the members of <see cref="T:System.Threading.ManualResetEventSlim"/>, <see cref="M:System.Threading.ManualResetEventSlim.Dispose"/> is not
2554 thread-safe and may not be used concurrently with other members of this instance.
2555 </remarks>
2556 </member>
2557 <member name="M:System.Threading.ManualResetEventSlim.Dispose(System.Boolean)">
2558 <summary>
2559 When overridden in a derived class, releases the unmanaged resources used by the
2560 <see cref="T:System.Threading.ManualResetEventSlim"/>, and optionally releases the managed resources.
2561 </summary>
2562 <param name="disposing">true to release both managed and unmanaged resources;
2563 false to release only unmanaged resources.</param>
2564 <remarks>
2565 Unlike most of the members of <see cref="T:System.Threading.ManualResetEventSlim"/>, <see cref="M:System.Threading.ManualResetEventSlim.Dispose(System.Boolean)"/> is not
2566 thread-safe and may not be used concurrently with other members of this instance.
2567 </remarks>
2568 </member>
2569 <member name="M:System.Threading.ManualResetEventSlim.ThrowIfDisposed">
2570 <summary>
2571 Throw ObjectDisposedException if the MRES is disposed
2572 </summary>
2573 </member>
2574 <member name="F:System.Threading.ManualResetEventSlim.s_cancellationTokenCallback">
2575 <summary>
2576 Private helper method to wake up waiters when a cancellationToken gets canceled.
2577 </summary>
2578 </member>
2579 <member name="M:System.Threading.ManualResetEventSlim.UpdateStateAtomically(System.Int32,System.Int32)">
2580 <summary>
2581 Private helper method for updating parts of a bit-string state value.
2582 Mainly called from the IsSet and Waiters properties setters
2583 </summary>
2584 <remarks>
2585 Note: the parameter types must be int as CompareExchange cannot take a Uint
2586 </remarks>
2587 <param name="newBits">The new value</param>
2588 <param name="updateBitsMask">The mask used to set the bits</param>
2589 </member>
2590 <member name="M:System.Threading.ManualResetEventSlim.ExtractStatePortionAndShiftRight(System.Int32,System.Int32,System.Int32)">
2591 <summary>
2592 Private helper method - performs Mask and shift, particular helpful to extract a field from a packed word.
2593 eg ExtractStatePortionAndShiftRight(0x12345678, 0xFF000000, 24) => 0x12, ie extracting the top 8-bits as a simple integer
2594
2595 ?? is there a common place to put this rather than being private to MRES?
2596 </summary>
2597 <param name="state"></param>
2598 <param name="mask"></param>
2599 <param name="rightBitShiftCount"></param>
2600 <returns></returns>
2601 </member>
2602 <member name="M:System.Threading.ManualResetEventSlim.ExtractStatePortion(System.Int32,System.Int32)">
2603 <summary>
2604 Performs a Mask operation, but does not perform the shift.
2605 This is acceptable for boolean values for which the shift is unnecessary
2606 eg (val &amp; Mask) != 0 is an appropriate way to extract a boolean rather than using
2607 ((val &amp; Mask) &gt;&gt; shiftAmount) == 1
2608
2609 ?? is there a common place to put this rather than being private to MRES?
2610 </summary>
2611 <param name="state"></param>
2612 <param name="mask"></param>
2613 </member>
2614 <member name="M:System.Threading.ManualResetEventSlim.UpdateTimeOut(System.Int64,System.Int32)">
2615 <summary>
2616 Helper function to measure and update the wait time
2617 </summary>
2618 <param name="startTimeTicks"> The first time (in Ticks) observed when the wait started.</param>
2619 <param name="originalWaitMillisecondsTimeout">The orginal wait timeoutout in milliseconds.</param>
2620 <returns>The new wait time in milliseconds, -1 if the time expired, -2 if overflow in counters
2621 has occurred.</returns>
2622 </member>
2623 <member name="P:System.Threading.ManualResetEventSlim.WaitHandle">
2624 <summary>
2625 Gets the underlying <see cref="T:System.Threading.WaitHandle"/> object for this <see cref="T:System.Threading.ManualResetEventSlim"/>.
2626 </summary>
2627 <value>The underlying <see cref="T:System.Threading.WaitHandle"/> event object fore this <see cref="T:System.Threading.ManualResetEventSlim"/>.</value>
2628 <remarks>
2629 Accessing this property forces initialization of an underlying event object if one hasn't
2630 already been created. To simply wait on this <see cref="T:System.Threading.ManualResetEventSlim"/>,
2631 the public Wait methods should be preferred.
2632 </remarks>
2633 </member>
2634 <member name="P:System.Threading.ManualResetEventSlim.IsSet">
2635 <summary>
2636 Gets whether the event is set.
2637 </summary>
2638 <value>true if the event has is set; otherwise, false.</value>
2639 </member>
2640 <member name="P:System.Threading.ManualResetEventSlim.SpinCount">
2641 <summary>
2642 Gets the number of spin waits that will be occur before falling back to a true wait.
2643 </summary>
2644 </member>
2645 <member name="P:System.Threading.ManualResetEventSlim.Waiters">
2646 <summary>
2647 How many threads are waiting.
2648 </summary>
2649 </member>
2650 <member name="T:System.Threading.SpinWait">
2651 <summary>
2652 Provides support for spin-based waiting.
2653 </summary>
2654 <remarks>
2655 <para>
2656 <see cref="T:System.Threading.SpinWait"/> encapsulates common spinning logic. On single-processor machines, yields are
2657 always used instead of busy waits, and on computers with Intelâ„¢ processors employing Hyper-Threadingâ„¢
2658 technology, it helps to prevent hardware thread starvation. SpinWait encapsulates a good mixture of
2659 spinning and true yielding.
2660 </para>
2661 <para>
2662 <see cref="T:System.Threading.SpinWait"/> is a value type, which means that low-level code can utilize SpinWait without
2663 fear of unnecessary allocation overheads. SpinWait is not generally useful for ordinary applications.
2664 In most cases, you should use the synchronization classes provided by the .NET Framework, such as
2665 <see cref="T:System.Threading.Monitor"/>. For most purposes where spin waiting is required, however,
2666 the <see cref="T:System.Threading.SpinWait"/> type should be preferred over the System.Threading.Thread.SpinWait method.
2667 </para>
2668 <para>
2669 While SpinWait is designed to be used in concurrent applications, it is not designed to be
2670 used from multiple threads concurrently. SpinWait's members are not thread-safe. If multiple
2671 threads must spin, each should use its own instance of SpinWait.
2672 </para>
2673 </remarks>
2674 </member>
2675 <member name="M:System.Threading.SpinWait.SpinOnce">
2676 <summary>
2677 Performs a single spin.
2678 </summary>
2679 <remarks>
2680 This is typically called in a loop, and may change in behavior based on the number of times a
2681 <see cref="M:System.Threading.SpinWait.SpinOnce"/> has been called thus far on this instance.
2682 </remarks>
2683 </member>
2684 <member name="M:System.Threading.SpinWait.Reset">
2685 <summary>
2686 Resets the spin counter.
2687 </summary>
2688 <remarks>
2689 This makes <see cref="M:System.Threading.SpinWait.SpinOnce"/> and <see cref="P:System.Threading.SpinWait.NextSpinWillYield"/> behave as though no calls
2690 to <see cref="M:System.Threading.SpinWait.SpinOnce"/> had been issued on this instance. If a <see cref="T:System.Threading.SpinWait"/> instance
2691 is reused many times, it may be useful to reset it to avoid yielding too soon.
2692 </remarks>
2693 </member>
2694 <member name="M:System.Threading.SpinWait.SpinUntil(System.Func{System.Boolean})">
2695 <summary>
2696 Spins until the specified condition is satisfied.
2697 </summary>
2698 <param name="condition">A delegate to be executed over and over until it returns true.</param>
2699 <exception cref="T:System.ArgumentNullException">The <paramref name="condition"/> argument is null.</exception>
2700 </member>
2701 <member name="M:System.Threading.SpinWait.SpinUntil(System.Func{System.Boolean},System.TimeSpan)">
2702 <summary>
2703 Spins until the specified condition is satisfied or until the specified timeout is expired.
2704 </summary>
2705 <param name="condition">A delegate to be executed over and over until it returns true.</param>
2706 <param name="timeout">
2707 A <see cref="T:System.TimeSpan"/> that represents the number of milliseconds to wait,
2708 or a TimeSpan that represents -1 milliseconds to wait indefinitely.</param>
2709 <returns>True if the condition is satisfied within the timeout; otherwise, false</returns>
2710 <exception cref="T:System.ArgumentNullException">The <paramref name="condition"/> argument is null.</exception>
2711 <exception cref="T:ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative number
2712 other than -1 milliseconds, which represents an infinite time-out -or- timeout is greater than
2713 <see cref="F:System.Int32.MaxValue"/>.</exception>
2714 </member>
2715 <member name="M:System.Threading.SpinWait.SpinUntil(System.Func{System.Boolean},System.Int32)">
2716 <summary>
2717 Spins until the specified condition is satisfied or until the specified timeout is expired.
2718 </summary>
2719 <param name="condition">A delegate to be executed over and over until it returns true.</param>
2720 <param name="millisecondsTimeout">The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
2721 <returns>True if the condition is satisfied within the timeout; otherwise, false</returns>
2722 <exception cref="T:System.ArgumentNullException">The <paramref name="condition"/> argument is null.</exception>
2723 <exception cref="T:ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a
2724 negative number other than -1, which represents an infinite time-out.</exception>
2725 </member>
2726 <member name="P:System.Threading.SpinWait.Count">
2727 <summary>
2728 Gets the number of times <see cref="M:System.Threading.SpinWait.SpinOnce"/> has been called on this instance.
2729 </summary>
2730 </member>
2731 <member name="P:System.Threading.SpinWait.NextSpinWillYield">
2732 <summary>
2733 Gets whether the next call to <see cref="M:System.Threading.SpinWait.SpinOnce"/> will yield the processor, triggering a
2734 forced context switch.
2735 </summary>
2736 <value>Whether the next call to <see cref="M:System.Threading.SpinWait.SpinOnce"/> will yield the processor, triggering a
2737 forced context switch.</value>
2738 <remarks>
2739 On a single-CPU machine, <see cref="M:System.Threading.SpinWait.SpinOnce"/> always yields the processor. On machines with
2740 multiple CPUs, <see cref="M:System.Threading.SpinWait.SpinOnce"/> may yield after an unspecified number of calls.
2741 </remarks>
2742 </member>
2743 <member name="T:System.Threading.PlatformHelper">
2744 <summary>
2745 A helper class to get the number of preocessors, it updates the numbers of processors every sampling interval
2746 </summary>
2747 </member>
2748 <member name="P:System.Threading.PlatformHelper.ProcessorCount">
2749 <summary>
2750 Gets the number of available processors
2751 </summary>
2752 </member>
2753 <member name="P:System.Threading.PlatformHelper.IsSingleProcessor">
2754 <summary>
2755 Gets whether the current machine has only a single processor.
2756 </summary>
2757 </member>
2758 <member name="T:System.Threading.Tasks.Task`1">
2759 <summary>
2760 Represents an asynchronous operation that produces a result at some time in the future.
2761 </summary>
2762 <typeparam name="TResult">
2763 The type of the result produced by this <see cref="T:System.Threading.Tasks.Task`1"/>.
2764 </typeparam>
2765 <remarks>
2766 <para>
2767 <see cref="T:System.Threading.Tasks.Task`1"/> instances may be created in a variety of ways. The most common approach is by
2768 using the task's <see cref="P:System.Threading.Tasks.Task`1.Factory"/> property to retrieve a <see cref="T:System.Threading.Tasks.TaskFactory`1"/> instance that can be used to create tasks for several
2769 purposes. For example, to create a <see cref="T:System.Threading.Tasks.Task`1"/> that runs a function, the factory's StartNew
2770 method may be used:
2771 <code>
2772 // C#
2773 var t = Task&lt;int&gt;.Factory.StartNew(() =&gt; GenerateResult());
2774 - or -
2775 var t = Task.Factory.StartNew(() =&gt; GenerateResult());
2776
2777 ' Visual Basic
2778 Dim t = Task&lt;int&gt;.Factory.StartNew(Function() GenerateResult())
2779 - or -
2780 Dim t = Task.Factory.StartNew(Function() GenerateResult())
2781 </code>
2782 </para>
2783 <para>
2784 The <see cref="T:System.Threading.Tasks.Task`1"/> class also provides constructors that initialize the task but that do not
2785 schedule it for execution. For performance reasons, the StartNew method should be the
2786 preferred mechanism for creating and scheduling computational tasks, but for scenarios where creation
2787 and scheduling must be separated, the constructors may be used, and the task's
2788 <see cref="M:System.Threading.Tasks.Task.Start">Start</see>
2789 method may then be used to schedule the task for execution at a later time.
2790 </para>
2791 <para>
2792 All members of <see cref="T:System.Threading.Tasks.Task`1"/>, except for
2793 <see cref="M:System.Threading.Tasks.Task.Dispose">Dispose</see>, are thread-safe
2794 and may be used from multiple threads concurrently.
2795 </para>
2796 </remarks>
2797 </member>
2798 <member name="T:System.Threading.Tasks.Task">
2799 <summary>
2800 Represents an asynchronous operation.
2801 </summary>
2802 <remarks>
2803 <para>
2804 <see cref="T:System.Threading.Tasks.Task"/> instances may be created in a variety of ways. The most common approach is by
2805 using the Task type's <see cref="P:System.Threading.Tasks.Task.Factory"/> property to retrieve a <see cref="T:System.Threading.Tasks.TaskFactory"/> instance that can be used to create tasks for several
2806 purposes. For example, to create a <see cref="T:System.Threading.Tasks.Task"/> that runs an action, the factory's StartNew
2807 method may be used:
2808 <code>
2809 // C#
2810 var t = Task.Factory.StartNew(() =&gt; DoAction());
2811
2812 ' Visual Basic
2813 Dim t = Task.Factory.StartNew(Function() DoAction())
2814 </code>
2815 </para>
2816 <para>
2817 The <see cref="T:System.Threading.Tasks.Task"/> class also provides constructors that initialize the Task but that do not
2818 schedule it for execution. For performance reasons, TaskFactory's StartNew method should be the
2819 preferred mechanism for creating and scheduling computational tasks, but for scenarios where creation
2820 and scheduling must be separated, the constructors may be used, and the task's <see cref="M:System.Threading.Tasks.Task.Start"/>
2821 method may then be used to schedule the task for execution at a later time.
2822 </para>
2823 <para>
2824 All members of <see cref="T:System.Threading.Tasks.Task"/>, except for <see cref="M:System.Threading.Tasks.Task.Dispose"/>, are thread-safe
2825 and may be used from multiple threads concurrently.
2826 </para>
2827 <para>
2828 For operations that return values, the <see cref="T:System.Threading.Tasks.Task`1"/> class
2829 should be used.
2830 </para>
2831 <para>
2832 For developers implementing custom debuggers, several internal and private members of Task may be
2833 useful (these may change from release to release). The Int32 m_taskId field serves as the backing
2834 store for the <see cref="P:System.Threading.Tasks.Task.Id"/> property, however accessing this field directly from a debugger may be
2835 more efficient than accessing the same value through the property's getter method (the
2836 s_taskIdCounter Int32 counter is used to retrieve the next available ID for a Task). Similarly, the
2837 Int32 m_stateFlags field stores information about the current lifecycle stage of the Task,
2838 information also accessible through the <see cref="P:System.Threading.Tasks.Task.Status"/> property. The m_action System.Object
2839 field stores a reference to the Task's delegate, and the m_stateObject System.Object field stores the
2840 async state passed to the Task by the developer. Finally, for debuggers that parse stack frames, the
2841 InternalWait method serves a potential marker for when a Task is entering a wait operation.
2842 </para>
2843 </remarks>
2844 </member>
2845 <member name="M:System.Threading.Tasks.Task.#cctor">
2846 <summary>
2847 A type initializer that runs with the appropriate permissions.
2848 </summary>
2849 </member>
2850 <member name="M:System.Threading.Tasks.Task.#ctor(System.Action)">
2851 <summary>
2852 Initializes a new <see cref="T:System.Threading.Tasks.Task"/> with the specified action.
2853 </summary>
2854 <param name="action">The delegate that represents the code to execute in the Task.</param>
2855 <exception cref="T:System.ArgumentNullException">The <paramref name="action"/> argument is null.</exception>
2856 </member>
2857 <member name="M:System.Threading.Tasks.Task.#ctor(System.Action,System.Threading.CancellationToken)">
2858 <summary>
2859 Initializes a new <see cref="T:System.Threading.Tasks.Task"/> with the specified action and <see cref="T:System.Threading.CancellationToken">CancellationToken</see>.
2860 </summary>
2861 <param name="action">The delegate that represents the code to execute in the Task.</param>
2862 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
2863 that will be assigned to the new Task.</param>
2864 <exception cref="T:System.ArgumentNullException">The <paramref name="action"/> argument is null.</exception>
2865 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
2866 has already been disposed.
2867 </exception>
2868 </member>
2869 <member name="M:System.Threading.Tasks.Task.#ctor(System.Action,System.Threading.Tasks.TaskCreationOptions)">
2870 <summary>
2871 Initializes a new <see cref="T:System.Threading.Tasks.Task"/> with the specified action and creation options.
2872 </summary>
2873 <param name="action">The delegate that represents the code to execute in the task.</param>
2874 <param name="creationOptions">
2875 The <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions</see> used to
2876 customize the Task's behavior.
2877 </param>
2878 <exception cref="T:System.ArgumentNullException">
2879 The <paramref name="action"/> argument is null.
2880 </exception>
2881 <exception cref="T:ArgumentOutOfRangeException">
2882 The <paramref name="creationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskCreationOptions"/>.
2883 </exception>
2884 </member>
2885 <member name="M:System.Threading.Tasks.Task.#ctor(System.Action,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions)">
2886 <summary>
2887 Initializes a new <see cref="T:System.Threading.Tasks.Task"/> with the specified action and creation options.
2888 </summary>
2889 <param name="action">The delegate that represents the code to execute in the task.</param>
2890 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> that will be assigned to the new task.</param>
2891 <param name="creationOptions">
2892 The <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions</see> used to
2893 customize the Task's behavior.
2894 </param>
2895 <exception cref="T:System.ArgumentNullException">
2896 The <paramref name="action"/> argument is null.
2897 </exception>
2898 <exception cref="T:ArgumentOutOfRangeException">
2899 The <paramref name="creationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskCreationOptions"/>.
2900 </exception>
2901 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
2902 has already been disposed.
2903 </exception>
2904 </member>
2905 <member name="M:System.Threading.Tasks.Task.#ctor(System.Action{System.Object},System.Object)">
2906 <summary>
2907 Initializes a new <see cref="T:System.Threading.Tasks.Task"/> with the specified action and state.
2908 </summary>
2909 <param name="action">The delegate that represents the code to execute in the task.</param>
2910 <param name="state">An object representing data to be used by the action.</param>
2911 <exception cref="T:System.ArgumentNullException">
2912 The <paramref name="action"/> argument is null.
2913 </exception>
2914 </member>
2915 <member name="M:System.Threading.Tasks.Task.#ctor(System.Action{System.Object},System.Object,System.Threading.CancellationToken)">
2916 <summary>
2917 Initializes a new <see cref="T:System.Threading.Tasks.Task"/> with the specified action, state, snd options.
2918 </summary>
2919 <param name="action">The delegate that represents the code to execute in the task.</param>
2920 <param name="state">An object representing data to be used by the action.</param>
2921 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> that will be assigned to the new task.</param>
2922 <exception cref="T:System.ArgumentNullException">
2923 The <paramref name="action"/> argument is null.
2924 </exception>
2925 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
2926 has already been disposed.
2927 </exception>
2928 </member>
2929 <member name="M:System.Threading.Tasks.Task.#ctor(System.Action{System.Object},System.Object,System.Threading.Tasks.TaskCreationOptions)">
2930 <summary>
2931 Initializes a new <see cref="T:System.Threading.Tasks.Task"/> with the specified action, state, snd options.
2932 </summary>
2933 <param name="action">The delegate that represents the code to execute in the task.</param>
2934 <param name="state">An object representing data to be used by the action.</param>
2935 <param name="creationOptions">
2936 The <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions</see> used to
2937 customize the Task's behavior.
2938 </param>
2939 <exception cref="T:System.ArgumentNullException">
2940 The <paramref name="action"/> argument is null.
2941 </exception>
2942 <exception cref="T:ArgumentOutOfRangeException">
2943 The <paramref name="creationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskCreationOptions"/>.
2944 </exception>
2945 </member>
2946 <member name="M:System.Threading.Tasks.Task.#ctor(System.Action{System.Object},System.Object,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions)">
2947 <summary>
2948 Initializes a new <see cref="T:System.Threading.Tasks.Task"/> with the specified action, state, snd options.
2949 </summary>
2950 <param name="action">The delegate that represents the code to execute in the task.</param>
2951 <param name="state">An object representing data to be used by the action.</param>
2952 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> that will be assigned to the new task.</param>
2953 <param name="creationOptions">
2954 The <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions</see> used to
2955 customize the Task's behavior.
2956 </param>
2957 <exception cref="T:System.ArgumentNullException">
2958 The <paramref name="action"/> argument is null.
2959 </exception>
2960 <exception cref="T:ArgumentOutOfRangeException">
2961 The <paramref name="creationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskCreationOptions"/>.
2962 </exception>
2963 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
2964 has already been disposed.
2965 </exception>
2966 </member>
2967 <member name="M:System.Threading.Tasks.Task.#ctor(System.Object,System.Object,System.Threading.Tasks.Task,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.InternalTaskOptions,System.Threading.Tasks.TaskScheduler)">
2968 <summary>
2969 An internal constructor used by the factory methods on task and its descendent(s).
2970 This variant does not capture the ExecutionContext; it is up to the caller to do that.
2971 </summary>
2972 <param name="action">An action to execute.</param>
2973 <param name="state">Optional state to pass to the action.</param>
2974 <param name="parent">Parent of Task.</param>
2975 <param name="cancellationToken">A CancellationToken for the task.</param>
2976 <param name="scheduler">A task scheduler under which the task will run.</param>
2977 <param name="creationOptions">Options to control its execution.</param>
2978 <param name="internalOptions">Internal options to control its execution</param>
2979 </member>
2980 <member name="M:System.Threading.Tasks.Task.TaskConstructorCore(System.Object,System.Object,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.InternalTaskOptions,System.Threading.Tasks.TaskScheduler)">
2981 <summary>
2982 Common logic used by the following internal ctors:
2983 Task()
2984 Task(object action, object state, Task parent, TaskCreationOptions options, TaskScheduler taskScheduler)
2985
2986 ASSUMES THAT m_creatingTask IS ALREADY SET.
2987
2988 </summary>
2989 <param name="action">Action for task to execute.</param>
2990 <param name="state">Object to which to pass to action (may be null)</param>
2991 <param name="scheduler">Task scheduler on which to run thread (only used by continuation tasks).</param>
2992 <param name="cancellationToken">A CancellationToken for the Task.</param>
2993 <param name="creationOptions">Options to customize behavior of Task.</param>
2994 <param name="internalOptions">Internal options to customize behavior of Task.</param>
2995 </member>
2996 <member name="M:System.Threading.Tasks.Task.DeregisterCancellationCallback">
2997 <summary>
2998 Checks if we registered a CT callback during construction, and deregisters it.
2999 This should be called when we know the registration isn't useful anymore. Specifically from Finish() if the task has completed
3000 successfully or with an exception.
3001 </summary>
3002 </member>
3003 <member name="M:System.Threading.Tasks.Task.PossiblyCaptureContext(System.Threading.StackCrawlMark@)">
3004 <summary>
3005 Captures the ExecutionContext so long as flow isn't suppressed.
3006 </summary>
3007 <param name="stackMark">A stack crawl mark pointing to the frame of the caller.</param>
3008 </member>
3009 <member name="M:System.Threading.Tasks.Task.AddNewChild">
3010 <summary>
3011 Internal function that will be called by a new child task to add itself to
3012 the children list of the parent (this).
3013
3014 Since a child task can only be created from the thread executing the action delegate
3015 of this task, reentrancy is neither required nor supported. This should not be called from
3016 anywhere other than the task construction/initialization codepaths.
3017 </summary>
3018 </member>
3019 <member name="M:System.Threading.Tasks.Task.Start">
3020 <summary>
3021 Starts the <see cref="T:System.Threading.Tasks.Task"/>, scheduling it for execution to the current <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>.
3022 </summary>
3023 <remarks>
3024 A task may only be started and run only once. Any attempts to schedule a task a second time
3025 will result in an exception.
3026 </remarks>
3027 <exception cref="T:System.InvalidOperationException">
3028 The <see cref="T:System.Threading.Tasks.Task"/> is not in a valid state to be started. It may have already been started,
3029 executed, or canceled, or it may have been created in a manner that doesn't support direct
3030 scheduling.
3031 </exception>
3032 <exception cref="T:System.ObjectDisposedException">
3033 The <see cref="T:System.Threading.Tasks.Task"/> instance has been disposed.
3034 </exception>
3035 </member>
3036 <member name="M:System.Threading.Tasks.Task.Start(System.Threading.Tasks.TaskScheduler)">
3037 <summary>
3038 Starts the <see cref="T:System.Threading.Tasks.Task"/>, scheduling it for execution to the specified <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>.
3039 </summary>
3040 <remarks>
3041 A task may only be started and run only once. Any attempts to schedule a task a second time will
3042 result in an exception.
3043 </remarks>
3044 <param name="scheduler">
3045 The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> with which to associate
3046 and execute this task.
3047 </param>
3048 <exception cref="T:System.ArgumentNullException">
3049 The <paramref name="scheduler"/> argument is null.
3050 </exception>
3051 <exception cref="T:System.InvalidOperationException">
3052 The <see cref="T:System.Threading.Tasks.Task"/> is not in a valid state to be started. It may have already been started,
3053 executed, or canceled, or it may have been created in a manner that doesn't support direct
3054 scheduling.
3055 </exception>
3056 <exception cref="T:System.ObjectDisposedException">
3057 The <see cref="T:System.Threading.Tasks.Task"/> instance has been disposed.
3058 </exception>
3059 </member>
3060 <member name="M:System.Threading.Tasks.Task.RunSynchronously">
3061 <summary>
3062 Runs the <see cref="T:System.Threading.Tasks.Task"/> synchronously on the current <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>.
3063 </summary>
3064 <remarks>
3065 <para>
3066 A task may only be started and run only once. Any attempts to schedule a task a second time will
3067 result in an exception.
3068 </para>
3069 <para>
3070 Tasks executed with <see cref="M:System.Threading.Tasks.Task.RunSynchronously"/> will be associated with the current <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>.
3071 </para>
3072 <para>
3073 If the target scheduler does not support running this Task on the current thread, the Task will
3074 be scheduled for execution on the scheduler, and the current thread will block until the
3075 Task has completed execution.
3076 </para>
3077 </remarks>
3078 <exception cref="T:System.InvalidOperationException">
3079 The <see cref="T:System.Threading.Tasks.Task"/> is not in a valid state to be started. It may have already been started,
3080 executed, or canceled, or it may have been created in a manner that doesn't support direct
3081 scheduling.
3082 </exception>
3083 <exception cref="T:System.ObjectDisposedException">
3084 The <see cref="T:System.Threading.Tasks.Task"/> instance has been disposed.
3085 </exception>
3086 </member>
3087 <member name="M:System.Threading.Tasks.Task.RunSynchronously(System.Threading.Tasks.TaskScheduler)">
3088 <summary>
3089 Runs the <see cref="T:System.Threading.Tasks.Task"/> synchronously on the <see cref="T:System.Threading.Tasks.TaskScheduler">scheduler</see> provided.
3090 </summary>
3091 <remarks>
3092 <para>
3093 A task may only be started and run only once. Any attempts to schedule a task a second time will
3094 result in an exception.
3095 </para>
3096 <para>
3097 If the target scheduler does not support running this Task on the current thread, the Task will
3098 be scheduled for execution on the scheduler, and the current thread will block until the
3099 Task has completed execution.
3100 </para>
3101 </remarks>
3102 <exception cref="T:System.InvalidOperationException">
3103 The <see cref="T:System.Threading.Tasks.Task"/> is not in a valid state to be started. It may have already been started,
3104 executed, or canceled, or it may have been created in a manner that doesn't support direct
3105 scheduling.
3106 </exception>
3107 <exception cref="T:System.ObjectDisposedException">
3108 The <see cref="T:System.Threading.Tasks.Task"/> instance has been disposed.
3109 </exception>
3110 <exception cref="T:System.ArgumentNullException">The <paramref name="scheduler"/> parameter
3111 is null.</exception>
3112 <param name="scheduler">The scheduler on which to attempt to run this task inline.</param>
3113 </member>
3114 <member name="M:System.Threading.Tasks.Task.ThrowIfDisposed">
3115 <summary>
3116 Throws an exception if the task has been disposed, and hence can no longer be accessed.
3117 </summary>
3118 <exception cref="T:System.ObjectDisposedException">The task has been disposed.</exception>
3119 </member>
3120 <member name="M:System.Threading.Tasks.Task.SetCompleted">
3121 <summary>
3122 Sets the internal completion event.
3123 </summary>
3124 </member>
3125 <member name="M:System.Threading.Tasks.Task.Dispose">
3126 <summary>
3127 Disposes the <see cref="T:System.Threading.Tasks.Task"/>, releasing all of its unmanaged resources.
3128 </summary>
3129 <remarks>
3130 Unlike most of the members of <see cref="T:System.Threading.Tasks.Task"/>, this method is not thread-safe.
3131 Also, <see cref="M:System.Threading.Tasks.Task.Dispose"/> may only be called on a <see cref="T:System.Threading.Tasks.Task"/> that is in one of
3132 the final states: <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
3133 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
3134 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
3135 </remarks>
3136 <exception cref="T:System.InvalidOperationException">
3137 The exception that is thrown if the <see cref="T:System.Threading.Tasks.Task"/> is not in
3138 one of the final states: <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
3139 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
3140 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
3141 </exception>
3142 </member>
3143 <member name="M:System.Threading.Tasks.Task.Dispose(System.Boolean)">
3144 <summary>
3145 Disposes the <see cref="T:System.Threading.Tasks.Task"/>, releasing all of its unmanaged resources.
3146 </summary>
3147 <param name="disposing">
3148 A Boolean value that indicates whether this method is being called due to a call to <see cref="M:System.Threading.Tasks.Task.Dispose"/>.
3149 </param>
3150 <remarks>
3151 Unlike most of the members of <see cref="T:System.Threading.Tasks.Task"/>, this method is not thread-safe.
3152 </remarks>
3153 </member>
3154 <member name="M:System.Threading.Tasks.Task.ScheduleAndStart(System.Boolean)">
3155 <summary>
3156 Schedules the task for execution.
3157 </summary>
3158 <param name="needsProtection">If true, TASK_STATE_STARTED bit is turned on in
3159 an atomic fashion, making sure that TASK_STATE_CANCELED does not get set
3160 underneath us. If false, TASK_STATE_STARTED bit is OR-ed right in. This
3161 allows us to streamline things a bit for StartNew(), where competing cancellations
3162 are not a problem.</param>
3163 </member>
3164 <member name="M:System.Threading.Tasks.Task.AddException(System.Object)">
3165 <summary>
3166 Adds an exception to the list of exceptions this task has thrown.
3167 </summary>
3168 <param name="exceptionObject">An object representing either an Exception or a collection of Exceptions.</param>
3169 </member>
3170 <member name="M:System.Threading.Tasks.Task.GetExceptions(System.Boolean)">
3171 <summary>
3172 Returns a list of exceptions by aggregating the holder's contents. Or null if
3173 no exceptions have been thrown.
3174 </summary>
3175 <param name="includeTaskCanceledExceptions">Whether to include a TCE if cancelled.</param>
3176 <returns>An aggregate exception, or null if no exceptions have been caught.</returns>
3177 </member>
3178 <member name="M:System.Threading.Tasks.Task.ThrowIfExceptional(System.Boolean)">
3179 <summary>
3180 Throws an aggregate exception if the task contains exceptions.
3181 </summary>
3182 </member>
3183 <member name="M:System.Threading.Tasks.Task.UpdateExceptionObservedStatus">
3184 <summary>
3185 Checks whether this is an attached task, and whether we are being called by the parent task.
3186 And sets the TASK_STATE_EXCEPTIONOBSERVEDBYPARENT status flag based on that.
3187
3188 This is meant to be used internally when throwing an exception, and when WaitAll is gathering
3189 exceptions for tasks it waited on. If this flag gets set, the implicit wait on children
3190 will skip exceptions to prevent duplication.
3191
3192 This should only be called when this task has completed with an exception
3193
3194 </summary>
3195 </member>
3196 <member name="M:System.Threading.Tasks.Task.Finish(System.Boolean)">
3197 <summary>
3198 Signals completion of this particular task.
3199
3200 The bUserDelegateExecuted parameter indicates whether this Finish() call comes following the
3201 full execution of the user delegate.
3202
3203 If bUserDelegateExecuted is false, it mean user delegate wasn't invoked at all (either due to
3204 a cancellation request, or because this task is a promise style Task). In this case, the steps
3205 involving child tasks (i.e. WaitForChildren) will be skipped.
3206
3207 </summary>
3208 </member>
3209 <member name="M:System.Threading.Tasks.Task.FinishStageTwo">
3210 <summary>
3211 FinishStageTwo is to be executed as soon as we known there are no more children to complete.
3212 It can happen i) either on the thread that originally executed this task (if no children were spawned, or they all completed by the time this task's delegate quit)
3213 ii) or on the thread that executed the last child.
3214 </summary>
3215 </member>
3216 <member name="M:System.Threading.Tasks.Task.FinishStageThree">
3217 <summary>
3218 Final stage of the task completion code path. Notifies the parent (if any) that another of its childre are done, and runs continuations.
3219 This function is only separated out from FinishStageTwo because these two operations are also needed to be called from CancellationCleanupLogic()
3220 </summary>
3221 </member>
3222 <member name="M:System.Threading.Tasks.Task.ProcessChildCompletion(System.Threading.Tasks.Task)">
3223 <summary>
3224 This is called by children of this task when they are completed.
3225 </summary>
3226 </member>
3227 <member name="M:System.Threading.Tasks.Task.AddExceptionsFromChildren">
3228 <summary>
3229 This is to be called just before the task does its final state transition.
3230 It traverses the list of exceptional children, and appends their aggregate exceptions into this one's exception list
3231 </summary>
3232 </member>
3233 <member name="M:System.Threading.Tasks.Task.FinishThreadAbortedTask(System.Boolean,System.Boolean)">
3234 <summary>
3235 Special purpose Finish() entry point to be used when the task delegate throws a ThreadAbortedException
3236 This makes a note in the state flags so that we avoid any costly synchronous operations in the finish codepath
3237 such as inlined continuations
3238 </summary>
3239 <param name="bTAEAddedToExceptionHolder">
3240 Indicates whether the ThreadAbortException was added to this task's exception holder.
3241 This should always be true except for the case of non-root self replicating task copies.
3242 </param>
3243 <param name="delegateRan">Whether the delegate was executed.</param>
3244 </member>
3245 <member name="M:System.Threading.Tasks.Task.Execute">
3246 <summary>
3247 Executes the task. This method will only be called once, and handles bookeeping associated with
3248 self-replicating tasks, in addition to performing necessary exception marshaling.
3249 </summary>
3250 <exception cref="T:System.ObjectDisposedException">The task has already been disposed.</exception>
3251 </member>
3252 <member name="M:System.Threading.Tasks.Task.System#Threading#Tasks#IThreadPoolWorkItem#ExecuteWorkItem">
3253 <summary>
3254 IThreadPoolWorkItem override, which is the entry function for this task when the TP scheduler decides to run it.
3255
3256 </summary>
3257 </member>
3258 <member name="M:System.Threading.Tasks.Task.ExecuteEntry(System.Boolean)">
3259 <summary>
3260 Outermost entry function to execute this task. Handles all aspects of executing a task on the caller thread.
3261 Currently this is called by IThreadPoolWorkItem.ExecuteWorkItem(), and TaskManager.TryExecuteInline.
3262
3263 </summary>
3264 <param name="bPreventDoubleExecution"> Performs atomic updates to prevent double execution. Should only be set to true
3265 in codepaths servicing user provided TaskSchedulers. The ConcRT or ThreadPool schedulers don't need this. </param>
3266 </member>
3267 <member name="M:System.Threading.Tasks.Task.InnerInvoke">
3268 <summary>
3269 The actual code which invokes the body of the task. This can be overriden in derived types.
3270 </summary>
3271 </member>
3272 <member name="M:System.Threading.Tasks.Task.InnerInvokeWithArg(System.Threading.Tasks.Task)">
3273 <summary>
3274 Alternate InnerInvoke prototype to be called from ExecuteSelfReplicating() so that
3275 the Parallel Debugger can discover the actual task being invoked.
3276 Details: Here, InnerInvoke is actually being called on the rootTask object while we are actually executing the
3277 childTask. And the debugger needs to discover the childTask, so we pass that down as an argument.
3278 The NoOptimization and NoInlining flags ensure that the childTask pointer is retained, and that this
3279 function appears on the callstack.
3280 </summary>
3281 <param name="childTask"></param>
3282 </member>
3283 <member name="M:System.Threading.Tasks.Task.HandleException(System.Exception)">
3284 <summary>
3285 Performs whatever handling is necessary for an unhandled exception. Normally
3286 this just entails adding the exception to the holder object.
3287 </summary>
3288 <param name="unhandledException">The exception that went unhandled.</param>
3289 </member>
3290 <member name="M:System.Threading.Tasks.Task.Wait">
3291 <summary>
3292 Waits for the <see cref="T:System.Threading.Tasks.Task"/> to complete execution.
3293 </summary>
3294 <exception cref="T:System.AggregateException">
3295 The <see cref="T:System.Threading.Tasks.Task"/> was canceled -or- an exception was thrown during
3296 the execution of the <see cref="T:System.Threading.Tasks.Task"/>.
3297 </exception>
3298 <exception cref="T:System.ObjectDisposedException">
3299 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3300 </exception>
3301 </member>
3302 <member name="M:System.Threading.Tasks.Task.Wait(System.TimeSpan)">
3303 <summary>
3304 Waits for the <see cref="T:System.Threading.Tasks.Task"/> to complete execution.
3305 </summary>
3306 <param name="timeout">
3307 A <see cref="T:System.TimeSpan"/> that represents the number of milliseconds to wait, or a <see cref="T:System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely.
3308 </param>
3309 <returns>
3310 true if the <see cref="T:System.Threading.Tasks.Task"/> completed execution within the allotted time; otherwise, false.
3311 </returns>
3312 <exception cref="T:System.AggregateException">
3313 The <see cref="T:System.Threading.Tasks.Task"/> was canceled -or- an exception was thrown during the execution of the <see cref="T:System.Threading.Tasks.Task"/>.
3314 </exception>
3315 <exception cref="T:ArgumentOutOfRangeException">
3316 <paramref name="timeout"/> is a negative number other than -1 milliseconds, which represents an
3317 infinite time-out -or- timeout is greater than
3318 <see cref="F:System.Int32.MaxValue"/>.
3319 </exception>
3320 <exception cref="T:System.ObjectDisposedException">
3321 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3322 </exception>
3323 </member>
3324 <member name="M:System.Threading.Tasks.Task.Wait(System.Threading.CancellationToken)">
3325 <summary>
3326 Waits for the <see cref="T:System.Threading.Tasks.Task"/> to complete execution.
3327 </summary>
3328 <param name="cancellationToken">
3329 A <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> to observe while waiting for the task to complete.
3330 </param>
3331 <exception cref="T:System.OperationCanceledException2">
3332 The <paramref name="cancellationToken"/> was canceled.
3333 </exception>
3334 <exception cref="T:System.AggregateException">
3335 The <see cref="T:System.Threading.Tasks.Task"/> was canceled -or- an exception was thrown during the execution of the <see cref="T:System.Threading.Tasks.Task"/>.
3336 </exception>
3337 <exception cref="T:System.ObjectDisposedException">
3338 The <see cref="T:System.Threading.Tasks.Task"/>
3339 has been disposed.
3340 </exception>
3341 </member>
3342 <member name="M:System.Threading.Tasks.Task.Wait(System.Int32)">
3343 <summary>
3344 Waits for the <see cref="T:System.Threading.Tasks.Task"/> to complete execution.
3345 </summary>
3346 <param name="millisecondsTimeout">
3347 The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite"/> (-1) to
3348 wait indefinitely.</param>
3349 <returns>true if the <see cref="T:System.Threading.Tasks.Task"/> completed execution within the allotted time; otherwise,
3350 false.
3351 </returns>
3352 <exception cref="T:ArgumentOutOfRangeException">
3353 <paramref name="millisecondsTimeout"/> is a negative number other than -1, which represents an
3354 infinite time-out.
3355 </exception>
3356 <exception cref="T:System.AggregateException">
3357 The <see cref="T:System.Threading.Tasks.Task"/> was canceled -or- an exception was thrown during the execution of the <see cref="T:System.Threading.Tasks.Task"/>.
3358 </exception>
3359 <exception cref="T:System.ObjectDisposedException">
3360 The <see cref="T:System.Threading.Tasks.Task"/>
3361 has been disposed.
3362 </exception>
3363 </member>
3364 <member name="M:System.Threading.Tasks.Task.Wait(System.Int32,System.Threading.CancellationToken)">
3365 <summary>
3366 Waits for the <see cref="T:System.Threading.Tasks.Task"/> to complete execution.
3367 </summary>
3368 <param name="millisecondsTimeout">
3369 The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite"/> (-1) to
3370 wait indefinitely.
3371 </param>
3372 <param name="cancellationToken">
3373 A <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> to observe while waiting for the task to complete.
3374 </param>
3375 <returns>
3376 true if the <see cref="T:System.Threading.Tasks.Task"/> completed execution within the allotted time; otherwise, false.
3377 </returns>
3378 <exception cref="T:System.AggregateException">
3379 The <see cref="T:System.Threading.Tasks.Task"/> was canceled -or- an exception was thrown during the execution of the <see cref="T:System.Threading.Tasks.Task"/>.
3380 </exception>
3381 <exception cref="T:System.ObjectDisposedException">
3382 The <see cref="T:System.Threading.Tasks.Task"/>
3383 has been disposed.
3384 </exception>
3385 <exception cref="T:ArgumentOutOfRangeException">
3386 <paramref name="millisecondsTimeout"/> is a negative number other than -1, which represents an
3387 infinite time-out.
3388 </exception>
3389 <exception cref="T:System.OperationCanceledException2">
3390 The <paramref name="cancellationToken"/> was canceled.
3391 </exception>
3392 </member>
3393 <member name="M:System.Threading.Tasks.Task.InternalWait(System.Int32,System.Threading.CancellationToken)">
3394 <summary>
3395 The core wait function, which is only accesible internally. It's meant to be used in places in TPL code where
3396 the current context is known or cached.
3397 </summary>
3398 </member>
3399 <member name="M:System.Threading.Tasks.Task.InternalCancel(System.Boolean)">
3400 <summary>
3401 Cancels the <see cref="T:System.Threading.Tasks.Task"/>.
3402 </summary>
3403 <param name="bCancelNonExecutingOnly"> Indiactes whether we should only cancel non-invoked tasks.
3404 For the default scheduler this option will only be serviced through TryDequeue.
3405 For custom schedulers we also attempt an atomic state transition.</param>
3406 <returns>true if the task was successfully canceled; otherwise, false.</returns>
3407 <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task"/>
3408 has been disposed.</exception>
3409 </member>
3410 <member name="M:System.Threading.Tasks.Task.SetCancellationAcknowledged">
3411 <summary>
3412 Sets the task's cancellation acknowledged flag.
3413 </summary>
3414 </member>
3415 <member name="M:System.Threading.Tasks.Task.FinishContinuations">
3416 <summary>
3417 Runs all of the continuations, as appropriate.
3418 </summary>
3419 </member>
3420 <member name="M:System.Threading.Tasks.Task.ContinueWithIsRightKind(System.Threading.Tasks.TaskContinuationOptions)">
3421 <summary>
3422 Helper function to determine whether the current task is in the state desired by the
3423 continuation kind under evaluation. Three possibilities exist: the task failed with
3424 an unhandled exception (OnFailed), the task was canceled before running (OnAborted),
3425 or the task completed successfully (OnCompletedSuccessfully). Note that the last
3426 one includes completing due to cancellation.
3427 </summary>
3428 <param name="options">The continuation options under evaluation.</param>
3429 <returns>True if the continuation should be run given the task's current state.</returns>
3430 </member>
3431 <member name="M:System.Threading.Tasks.Task.ContinueWith(System.Action{System.Threading.Tasks.Task})">
3432 <summary>
3433 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task"/> completes.
3434 </summary>
3435 <param name="continuationAction">
3436 An action to run when the <see cref="T:System.Threading.Tasks.Task"/> completes. When run, the delegate will be
3437 passed the completed task as an argument.
3438 </param>
3439 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
3440 <remarks>
3441 The returned <see cref="T:System.Threading.Tasks.Task"/> will not be scheduled for execution until the current task has
3442 completed, whether it completes due to running to completion successfully, faulting due to an
3443 unhandled exception, or exiting out early due to being canceled.
3444 </remarks>
3445 <exception cref="T:System.ArgumentNullException">
3446 The <paramref name="continuationAction"/> argument is null.
3447 </exception>
3448 <exception cref="T:System.ObjectDisposedException">
3449 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3450 </exception>
3451 </member>
3452 <member name="M:System.Threading.Tasks.Task.ContinueWith(System.Action{System.Threading.Tasks.Task},System.Threading.CancellationToken)">
3453 <summary>
3454 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task"/> completes.
3455 </summary>
3456 <param name="continuationAction">
3457 An action to run when the <see cref="T:System.Threading.Tasks.Task"/> completes. When run, the delegate will be
3458 passed the completed task as an argument.
3459 </param>
3460 <param name="cancellationToken"> The <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> that will be assigned to the new continuation task.</param>
3461 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
3462 <remarks>
3463 The returned <see cref="T:System.Threading.Tasks.Task"/> will not be scheduled for execution until the current task has
3464 completed, whether it completes due to running to completion successfully, faulting due to an
3465 unhandled exception, or exiting out early due to being canceled.
3466 </remarks>
3467 <exception cref="T:System.ArgumentNullException">
3468 The <paramref name="continuationAction"/> argument is null.
3469 </exception>
3470 <exception cref="T:System.ObjectDisposedException">
3471 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3472 </exception>
3473 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
3474 has already been disposed.
3475 </exception>
3476 </member>
3477 <member name="M:System.Threading.Tasks.Task.ContinueWith(System.Action{System.Threading.Tasks.Task},System.Threading.Tasks.TaskScheduler)">
3478 <summary>
3479 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task"/> completes.
3480 </summary>
3481 <param name="continuationAction">
3482 An action to run when the <see cref="T:System.Threading.Tasks.Task"/> completes. When run, the delegate will be
3483 passed the completed task as an argument.
3484 </param>
3485 <param name="scheduler">
3486 The <see cref="T:System.Threading.Tasks.TaskScheduler"/> to associate with the continuation task and to use for its execution.
3487 </param>
3488 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
3489 <remarks>
3490 The returned <see cref="T:System.Threading.Tasks.Task"/> will not be scheduled for execution until the current task has
3491 completed, whether it completes due to running to completion successfully, faulting due to an
3492 unhandled exception, or exiting out early due to being canceled.
3493 </remarks>
3494 <exception cref="T:System.ArgumentNullException">
3495 The <paramref name="continuationAction"/> argument is null.
3496 </exception>
3497 <exception cref="T:System.ArgumentNullException">
3498 The <paramref name="scheduler"/> argument is null.
3499 </exception>
3500 <exception cref="T:System.ObjectDisposedException">
3501 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3502 </exception>
3503 </member>
3504 <member name="M:System.Threading.Tasks.Task.ContinueWith(System.Action{System.Threading.Tasks.Task},System.Threading.Tasks.TaskContinuationOptions)">
3505 <summary>
3506 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task"/> completes.
3507 </summary>
3508 <param name="continuationAction">
3509 An action to run when the <see cref="T:System.Threading.Tasks.Task"/> completes. When run, the delegate will be
3510 passed the completed task as an argument.
3511 </param>
3512 <param name="continuationOptions">
3513 Options for when the continuation is scheduled and how it behaves. This includes criteria, such
3514 as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as
3515 well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>.
3516 </param>
3517 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
3518 <remarks>
3519 The returned <see cref="T:System.Threading.Tasks.Task"/> will not be scheduled for execution until the current task has
3520 completed. If the continuation criteria specified through the <paramref name="continuationOptions"/> parameter are not met, the continuation task will be canceled
3521 instead of scheduled.
3522 </remarks>
3523 <exception cref="T:System.ArgumentNullException">
3524 The <paramref name="continuationAction"/> argument is null.
3525 </exception>
3526 <exception cref="T:ArgumentOutOfRangeException">
3527 The <paramref name="continuationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>.
3528 </exception>
3529 <exception cref="T:System.ObjectDisposedException">
3530 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3531 </exception>
3532 </member>
3533 <member name="M:System.Threading.Tasks.Task.ContinueWith(System.Action{System.Threading.Tasks.Task},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
3534 <summary>
3535 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task"/> completes.
3536 </summary>
3537 <param name="continuationAction">
3538 An action to run when the <see cref="T:System.Threading.Tasks.Task"/> completes. When run, the delegate will be
3539 passed the completed task as an argument.
3540 </param>
3541 <param name="continuationOptions">
3542 Options for when the continuation is scheduled and how it behaves. This includes criteria, such
3543 as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as
3544 well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>.
3545 </param>
3546 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> that will be assigned to the new continuation task.</param>
3547 <param name="scheduler">
3548 The <see cref="T:System.Threading.Tasks.TaskScheduler"/> to associate with the continuation task and to use for its
3549 execution.
3550 </param>
3551 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
3552 <remarks>
3553 The returned <see cref="T:System.Threading.Tasks.Task"/> will not be scheduled for execution until the current task has
3554 completed. If the criteria specified through the <paramref name="continuationOptions"/> parameter
3555 are not met, the continuation task will be canceled instead of scheduled.
3556 </remarks>
3557 <exception cref="T:System.ArgumentNullException">
3558 The <paramref name="continuationAction"/> argument is null.
3559 </exception>
3560 <exception cref="T:ArgumentOutOfRangeException">
3561 The <paramref name="continuationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>.
3562 </exception>
3563 <exception cref="T:System.ArgumentNullException">
3564 The <paramref name="scheduler"/> argument is null.
3565 </exception>
3566 <exception cref="T:System.ObjectDisposedException">
3567 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3568 </exception>
3569 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
3570 has already been disposed.
3571 </exception>
3572 </member>
3573 <member name="M:System.Threading.Tasks.Task.ContinueWith``1(System.Func{System.Threading.Tasks.Task,``0})">
3574 <summary>
3575 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task"/> completes.
3576 </summary>
3577 <typeparam name="TResult">
3578 The type of the result produced by the continuation.
3579 </typeparam>
3580 <param name="continuationFunction">
3581 A function to run when the <see cref="T:System.Threading.Tasks.Task"/> completes. When run, the delegate will be
3582 passed the completed task as an argument.
3583 </param>
3584 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
3585 <remarks>
3586 The returned <see cref="T:System.Threading.Tasks.Task`1"/> will not be scheduled for execution until the current task has
3587 completed, whether it completes due to running to completion successfully, faulting due to an
3588 unhandled exception, or exiting out early due to being canceled.
3589 </remarks>
3590 <exception cref="T:System.ArgumentNullException">
3591 The <paramref name="continuationFunction"/> argument is null.
3592 </exception>
3593 <exception cref="T:System.ObjectDisposedException">
3594 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3595 </exception>
3596 </member>
3597 <member name="M:System.Threading.Tasks.Task.ContinueWith``1(System.Func{System.Threading.Tasks.Task,``0},System.Threading.CancellationToken)">
3598 <summary>
3599 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task"/> completes.
3600 </summary>
3601 <typeparam name="TResult">
3602 The type of the result produced by the continuation.
3603 </typeparam>
3604 <param name="continuationFunction">
3605 A function to run when the <see cref="T:System.Threading.Tasks.Task"/> completes. When run, the delegate will be
3606 passed the completed task as an argument.
3607 </param>
3608 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> that will be assigned to the new continuation task.</param>
3609 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
3610 <remarks>
3611 The returned <see cref="T:System.Threading.Tasks.Task`1"/> will not be scheduled for execution until the current task has
3612 completed, whether it completes due to running to completion successfully, faulting due to an
3613 unhandled exception, or exiting out early due to being canceled.
3614 </remarks>
3615 <exception cref="T:System.ArgumentNullException">
3616 The <paramref name="continuationFunction"/> argument is null.
3617 </exception>
3618 <exception cref="T:System.ObjectDisposedException">
3619 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3620 </exception>
3621 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
3622 has already been disposed.
3623 </exception>
3624 </member>
3625 <member name="M:System.Threading.Tasks.Task.ContinueWith``1(System.Func{System.Threading.Tasks.Task,``0},System.Threading.Tasks.TaskScheduler)">
3626 <summary>
3627 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task"/> completes.
3628 </summary>
3629 <typeparam name="TResult">
3630 The type of the result produced by the continuation.
3631 </typeparam>
3632 <param name="continuationFunction">
3633 A function to run when the <see cref="T:System.Threading.Tasks.Task"/> completes. When run, the delegate will be
3634 passed the completed task as an argument.
3635 </param>
3636 <param name="scheduler">
3637 The <see cref="T:System.Threading.Tasks.TaskScheduler"/> to associate with the continuation task and to use for its execution.
3638 </param>
3639 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
3640 <remarks>
3641 The returned <see cref="T:System.Threading.Tasks.Task`1"/> will not be scheduled for execution until the current task has
3642 completed, whether it completes due to running to completion successfully, faulting due to an
3643 unhandled exception, or exiting out early due to being canceled.
3644 </remarks>
3645 <exception cref="T:System.ArgumentNullException">
3646 The <paramref name="continuationFunction"/> argument is null.
3647 </exception>
3648 <exception cref="T:System.ArgumentNullException">
3649 The <paramref name="scheduler"/> argument is null.
3650 </exception>
3651 <exception cref="T:System.ObjectDisposedException">
3652 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3653 </exception>
3654 </member>
3655 <member name="M:System.Threading.Tasks.Task.ContinueWith``1(System.Func{System.Threading.Tasks.Task,``0},System.Threading.Tasks.TaskContinuationOptions)">
3656 <summary>
3657 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task"/> completes.
3658 </summary>
3659 <typeparam name="TResult">
3660 The type of the result produced by the continuation.
3661 </typeparam>
3662 <param name="continuationFunction">
3663 A function to run when the <see cref="T:System.Threading.Tasks.Task"/> completes. When run, the delegate will be
3664 passed the completed task as an argument.
3665 </param>
3666 <param name="continuationOptions">
3667 Options for when the continuation is scheduled and how it behaves. This includes criteria, such
3668 as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as
3669 well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>.
3670 </param>
3671 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
3672 <remarks>
3673 The returned <see cref="T:System.Threading.Tasks.Task`1"/> will not be scheduled for execution until the current task has
3674 completed. If the continuation criteria specified through the <paramref name="continuationOptions"/> parameter are not met, the continuation task will be canceled
3675 instead of scheduled.
3676 </remarks>
3677 <exception cref="T:System.ArgumentNullException">
3678 The <paramref name="continuationFunction"/> argument is null.
3679 </exception>
3680 <exception cref="T:ArgumentOutOfRangeException">
3681 The <paramref name="continuationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>.
3682 </exception>
3683 <exception cref="T:System.ObjectDisposedException">
3684 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3685 </exception>
3686 </member>
3687 <member name="M:System.Threading.Tasks.Task.ContinueWith``1(System.Func{System.Threading.Tasks.Task,``0},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
3688 <summary>
3689 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task"/> completes.
3690 </summary>
3691 <typeparam name="TResult">
3692 The type of the result produced by the continuation.
3693 </typeparam>
3694 <param name="continuationFunction">
3695 A function to run when the <see cref="T:System.Threading.Tasks.Task"/> completes. When run, the delegate will be
3696 passed the completed task as an argument.
3697 </param>
3698 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> that will be assigned to the new continuation task.</param>
3699 <param name="continuationOptions">
3700 Options for when the continuation is scheduled and how it behaves. This includes criteria, such
3701 as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as
3702 well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>.
3703 </param>
3704 <param name="scheduler">
3705 The <see cref="T:System.Threading.Tasks.TaskScheduler"/> to associate with the continuation task and to use for its
3706 execution.
3707 </param>
3708 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
3709 <remarks>
3710 The returned <see cref="T:System.Threading.Tasks.Task`1"/> will not be scheduled for execution until the current task has
3711 completed. If the criteria specified through the <paramref name="continuationOptions"/> parameter
3712 are not met, the continuation task will be canceled instead of scheduled.
3713 </remarks>
3714 <exception cref="T:System.ArgumentNullException">
3715 The <paramref name="continuationFunction"/> argument is null.
3716 </exception>
3717 <exception cref="T:ArgumentOutOfRangeException">
3718 The <paramref name="continuationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>.
3719 </exception>
3720 <exception cref="T:System.ArgumentNullException">
3721 The <paramref name="scheduler"/> argument is null.
3722 </exception>
3723 <exception cref="T:System.ObjectDisposedException">
3724 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3725 </exception>
3726 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
3727 has already been disposed.
3728 </exception>
3729 </member>
3730 <member name="M:System.Threading.Tasks.Task.CreationOptionsFromContinuationOptions(System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskCreationOptions@,System.Threading.Tasks.InternalTaskOptions@)">
3731 <summary>
3732 Converts TaskContinuationOptions to TaskCreationOptions, and also does
3733 some validity checking along the way.
3734 </summary>
3735 <param name="continuationOptions">Incoming TaskContinuationOptions</param>
3736 <param name="creationOptions">Outgoing TaskCreationOptions</param>
3737 <param name="internalOptions">Outgoing InternalTaskOptions</param>
3738 </member>
3739 <member name="M:System.Threading.Tasks.Task.ContinueWithCore(System.Threading.Tasks.Task,System.Threading.Tasks.TaskScheduler,System.Threading.Tasks.TaskContinuationOptions)">
3740 <summary>
3741 Registers the continuation and possibly runs it (if the task is already finished).
3742 </summary>
3743 <param name="continuationTask">The continuation task itself.</param>
3744 <param name="scheduler">TaskScheduler with which to associate continuation task.</param>
3745 <param name="options">Restrictions on when the continuation becomes active.</param>
3746 </member>
3747 <member name="M:System.Threading.Tasks.Task.WaitAll(System.Threading.Tasks.Task[])">
3748 <summary>
3749 Waits for all of the provided <see cref="T:System.Threading.Tasks.Task"/> objects to complete execution.
3750 </summary>
3751 <param name="tasks">
3752 An array of <see cref="T:System.Threading.Tasks.Task"/> instances on which to wait.
3753 </param>
3754 <exception cref="T:System.ArgumentNullException">
3755 The <paramref name="tasks"/> argument is null.
3756 </exception>
3757 <exception cref="T:System.ArgumentNullException">
3758 The <paramref name="tasks"/> argument contains a null element.
3759 </exception>
3760 <exception cref="T:System.AggregateException">
3761 At least one of the <see cref="T:System.Threading.Tasks.Task"/> instances was canceled -or- an exception was thrown during
3762 the execution of at least one of the <see cref="T:System.Threading.Tasks.Task"/> instances.
3763 </exception>
3764 <exception cref="T:System.ObjectDisposedException">
3765 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3766 </exception>
3767 </member>
3768 <member name="M:System.Threading.Tasks.Task.WaitAll(System.Threading.Tasks.Task[],System.TimeSpan)">
3769 <summary>
3770 Waits for all of the provided <see cref="T:System.Threading.Tasks.Task"/> objects to complete execution.
3771 </summary>
3772 <returns>
3773 true if all of the <see cref="T:System.Threading.Tasks.Task"/> instances completed execution within the allotted time;
3774 otherwise, false.
3775 </returns>
3776 <param name="tasks">
3777 An array of <see cref="T:System.Threading.Tasks.Task"/> instances on which to wait.
3778 </param>
3779 <param name="timeout">
3780 A <see cref="T:System.TimeSpan"/> that represents the number of milliseconds to wait, or a <see cref="T:System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely.
3781 </param>
3782 <exception cref="T:System.ArgumentNullException">
3783 The <paramref name="tasks"/> argument is null.
3784 </exception>
3785 <exception cref="T:System.ArgumentException">
3786 The <paramref name="tasks"/> argument contains a null element.
3787 </exception>
3788 <exception cref="T:System.AggregateException">
3789 At least one of the <see cref="T:System.Threading.Tasks.Task"/> instances was canceled -or- an exception was thrown during
3790 the execution of at least one of the <see cref="T:System.Threading.Tasks.Task"/> instances.
3791 </exception>
3792 <exception cref="T:ArgumentOutOfRangeException">
3793 <paramref name="timeout"/> is a negative number other than -1 milliseconds, which represents an
3794 infinite time-out -or- timeout is greater than
3795 <see cref="F:System.Int32.MaxValue"/>.
3796 </exception>
3797 <exception cref="T:System.ObjectDisposedException">
3798 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3799 </exception>
3800 </member>
3801 <member name="M:System.Threading.Tasks.Task.WaitAll(System.Threading.Tasks.Task[],System.Int32)">
3802 <summary>
3803 Waits for all of the provided <see cref="T:System.Threading.Tasks.Task"/> objects to complete execution.
3804 </summary>
3805 <returns>
3806 true if all of the <see cref="T:System.Threading.Tasks.Task"/> instances completed execution within the allotted time;
3807 otherwise, false.
3808 </returns>
3809 <param name="millisecondsTimeout">
3810 The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite"/> (-1) to
3811 wait indefinitely.</param>
3812 <param name="tasks">An array of <see cref="T:System.Threading.Tasks.Task"/> instances on which to wait.
3813 </param>
3814 <exception cref="T:System.ArgumentNullException">
3815 The <paramref name="tasks"/> argument is null.
3816 </exception>
3817 <exception cref="T:System.ArgumentException">
3818 The <paramref name="tasks"/> argument contains a null element.
3819 </exception>
3820 <exception cref="T:System.AggregateException">
3821 At least one of the <see cref="T:System.Threading.Tasks.Task"/> instances was canceled -or- an exception was thrown during
3822 the execution of at least one of the <see cref="T:System.Threading.Tasks.Task"/> instances.
3823 </exception>
3824 <exception cref="T:System.ObjectDisposedException">
3825 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3826 </exception>
3827 <exception cref="T:ArgumentOutOfRangeException">
3828 <paramref name="millisecondsTimeout"/> is a negative number other than -1, which represents an
3829 infinite time-out.
3830 </exception>
3831 </member>
3832 <member name="M:System.Threading.Tasks.Task.WaitAll(System.Threading.Tasks.Task[],System.Threading.CancellationToken)">
3833 <summary>
3834 Waits for all of the provided <see cref="T:System.Threading.Tasks.Task"/> objects to complete execution.
3835 </summary>
3836 <returns>
3837 true if all of the <see cref="T:System.Threading.Tasks.Task"/> instances completed execution within the allotted time;
3838 otherwise, false.
3839 </returns>
3840 <param name="tasks">
3841 An array of <see cref="T:System.Threading.Tasks.Task"/> instances on which to wait.
3842 </param>
3843 <param name="cancellationToken">
3844 A <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> to observe while waiting for the tasks to complete.
3845 </param>
3846 <exception cref="T:System.ArgumentNullException">
3847 The <paramref name="tasks"/> argument is null.
3848 </exception>
3849 <exception cref="T:System.ArgumentException">
3850 The <paramref name="tasks"/> argument contains a null element.
3851 </exception>
3852 <exception cref="T:System.AggregateException">
3853 At least one of the <see cref="T:System.Threading.Tasks.Task"/> instances was canceled -or- an exception was thrown during
3854 the execution of at least one of the <see cref="T:System.Threading.Tasks.Task"/> instances.
3855 </exception>
3856 <exception cref="T:System.OperationCanceledException2">
3857 The <paramref name="cancellationToken"/> was canceled.
3858 </exception>
3859 <exception cref="T:System.ObjectDisposedException">
3860 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3861 </exception>
3862 </member>
3863 <member name="M:System.Threading.Tasks.Task.WaitAll(System.Threading.Tasks.Task[],System.Int32,System.Threading.CancellationToken)">
3864 <summary>
3865 Waits for all of the provided <see cref="T:System.Threading.Tasks.Task"/> objects to complete execution.
3866 </summary>
3867 <returns>
3868 true if all of the <see cref="T:System.Threading.Tasks.Task"/> instances completed execution within the allotted time;
3869 otherwise, false.
3870 </returns>
3871 <param name="tasks">
3872 An array of <see cref="T:System.Threading.Tasks.Task"/> instances on which to wait.
3873 </param>
3874 <param name="millisecondsTimeout">
3875 The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite"/> (-1) to
3876 wait indefinitely.
3877 </param>
3878 <param name="cancellationToken">
3879 A <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> to observe while waiting for the tasks to complete.
3880 </param>
3881 <exception cref="T:System.ArgumentNullException">
3882 The <paramref name="tasks"/> argument is null.
3883 </exception>
3884 <exception cref="T:System.ArgumentException">
3885 The <paramref name="tasks"/> argument contains a null element.
3886 </exception>
3887 <exception cref="T:System.AggregateException">
3888 At least one of the <see cref="T:System.Threading.Tasks.Task"/> instances was canceled -or- an exception was thrown during
3889 the execution of at least one of the <see cref="T:System.Threading.Tasks.Task"/> instances.
3890 </exception>
3891 <exception cref="T:System.ObjectDisposedException">
3892 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3893 </exception>
3894 <exception cref="T:ArgumentOutOfRangeException">
3895 <paramref name="millisecondsTimeout"/> is a negative number other than -1, which represents an
3896 infinite time-out.
3897 </exception>
3898 <exception cref="T:System.OperationCanceledException2">
3899 The <paramref name="cancellationToken"/> was canceled.
3900 </exception>
3901 </member>
3902 <member name="M:System.Threading.Tasks.Task.WaitAllSTAAnd64Aware(System.Threading.WaitHandle[],System.Int32,System.Threading.CancellationToken)">
3903 <summary>
3904 Waits for a set of handles in a STA-aware way. In other words, it will wait for each
3905 of the events individually if we're on a STA thread, because MsgWaitForMultipleObjectsEx
3906 can't do a true wait-all due to its hidden message queue event. This is not atomic,
3907 of course, but we only wait on one-way (MRE) events anyway so this is OK.
3908 </summary>
3909 <param name="waitHandles">An array of wait handles to wait on.</param>
3910 <param name="millisecondsTimeout">The timeout to use during waits.</param>
3911 <param name="cancellationToken">The cancellationToken that enables a wait to be canceled.</param>
3912 <returns>True if all waits succeeded, false if a timeout occurred.</returns>
3913 </member>
3914 <member name="M:System.Threading.Tasks.Task.FastWaitAll(System.Threading.Tasks.Task[])">
3915 <summary>
3916 Internal WaitAll implementation which is meant to be used with small number of tasks,
3917 optimized for Parallel.Invoke and other structured primitives.
3918 </summary>
3919 </member>
3920 <member name="M:System.Threading.Tasks.Task.AddExceptionsForCompletedTask(System.Collections.Generic.List{System.Exception}@,System.Threading.Tasks.Task)">
3921 <summary>
3922 This internal function is only meant to be called by WaitAll()
3923 If the completed task is canceled or it has other exceptions, here we will add those
3924 into the passed in exception list (which will be lazily initialized here).
3925 </summary>
3926 </member>
3927 <member name="M:System.Threading.Tasks.Task.WaitAny(System.Threading.Tasks.Task[])">
3928 <summary>
3929 Waits for any of the provided <see cref="T:System.Threading.Tasks.Task"/> objects to complete execution.
3930 </summary>
3931 <param name="tasks">
3932 An array of <see cref="T:System.Threading.Tasks.Task"/> instances on which to wait.
3933 </param>
3934 <returns>The index of the completed task in the <paramref name="tasks"/> array argument.</returns>
3935 <exception cref="T:System.ArgumentNullException">
3936 The <paramref name="tasks"/> argument is null.
3937 </exception>
3938 <exception cref="T:System.ArgumentException">
3939 The <paramref name="tasks"/> argument contains a null element.
3940 </exception>
3941 <exception cref="T:System.ObjectDisposedException">
3942 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3943 </exception>
3944 </member>
3945 <member name="M:System.Threading.Tasks.Task.WaitAny(System.Threading.Tasks.Task[],System.TimeSpan)">
3946 <summary>
3947 Waits for any of the provided <see cref="T:System.Threading.Tasks.Task"/> objects to complete execution.
3948 </summary>
3949 <param name="tasks">
3950 An array of <see cref="T:System.Threading.Tasks.Task"/> instances on which to wait.
3951 </param>
3952 <param name="timeout">
3953 A <see cref="T:System.TimeSpan"/> that represents the number of milliseconds to wait, or a <see cref="T:System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely.
3954 </param>
3955 <returns>
3956 The index of the completed task in the <paramref name="tasks"/> array argument, or -1 if the
3957 timeout occurred.
3958 </returns>
3959 <exception cref="T:System.ArgumentNullException">
3960 The <paramref name="tasks"/> argument is null.
3961 </exception>
3962 <exception cref="T:System.ArgumentException">
3963 The <paramref name="tasks"/> argument contains a null element.
3964 </exception>
3965 <exception cref="T:System.ObjectDisposedException">
3966 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3967 </exception>
3968 <exception cref="T:ArgumentOutOfRangeException">
3969 <paramref name="timeout"/> is a negative number other than -1 milliseconds, which represents an
3970 infinite time-out -or- timeout is greater than
3971 <see cref="F:System.Int32.MaxValue"/>.
3972 </exception>
3973 </member>
3974 <member name="M:System.Threading.Tasks.Task.WaitAny(System.Threading.Tasks.Task[],System.Threading.CancellationToken)">
3975 <summary>
3976 Waits for any of the provided <see cref="T:System.Threading.Tasks.Task"/> objects to complete execution.
3977 </summary>
3978 <param name="tasks">
3979 An array of <see cref="T:System.Threading.Tasks.Task"/> instances on which to wait.
3980 </param>
3981 <param name="cancellationToken">
3982 A <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> to observe while waiting for a task to complete.
3983 </param>
3984 <returns>
3985 The index of the completed task in the <paramref name="tasks"/> array argument.
3986 </returns>
3987 <exception cref="T:System.ArgumentNullException">
3988 The <paramref name="tasks"/> argument is null.
3989 </exception>
3990 <exception cref="T:System.ArgumentException">
3991 The <paramref name="tasks"/> argument contains a null element.
3992 </exception>
3993 <exception cref="T:System.ObjectDisposedException">
3994 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
3995 </exception>
3996 <exception cref="T:System.OperationCanceledException2">
3997 The <paramref name="cancellationToken"/> was canceled.
3998 </exception>
3999 </member>
4000 <member name="M:System.Threading.Tasks.Task.WaitAny(System.Threading.Tasks.Task[],System.Int32)">
4001 <summary>
4002 Waits for any of the provided <see cref="T:System.Threading.Tasks.Task"/> objects to complete execution.
4003 </summary>
4004 <param name="tasks">
4005 An array of <see cref="T:System.Threading.Tasks.Task"/> instances on which to wait.
4006 </param>
4007 <param name="millisecondsTimeout">
4008 The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite"/> (-1) to
4009 wait indefinitely.
4010 </param>
4011 <returns>
4012 The index of the completed task in the <paramref name="tasks"/> array argument, or -1 if the
4013 timeout occurred.
4014 </returns>
4015 <exception cref="T:System.ArgumentNullException">
4016 The <paramref name="tasks"/> argument is null.
4017 </exception>
4018 <exception cref="T:System.ArgumentException">
4019 The <paramref name="tasks"/> argument contains a null element.
4020 </exception>
4021 <exception cref="T:System.ObjectDisposedException">
4022 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
4023 </exception>
4024 <exception cref="T:ArgumentOutOfRangeException">
4025 <paramref name="millisecondsTimeout"/> is a negative number other than -1, which represents an
4026 infinite time-out.
4027 </exception>
4028 </member>
4029 <member name="M:System.Threading.Tasks.Task.WaitAny(System.Threading.Tasks.Task[],System.Int32,System.Threading.CancellationToken)">
4030 <summary>
4031 Waits for any of the provided <see cref="T:System.Threading.Tasks.Task"/> objects to complete execution.
4032 </summary>
4033 <param name="tasks">
4034 An array of <see cref="T:System.Threading.Tasks.Task"/> instances on which to wait.
4035 </param>
4036 <param name="millisecondsTimeout">
4037 The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite"/> (-1) to
4038 wait indefinitely.
4039 </param>
4040 <param name="cancellationToken">
4041 A <see cref="P:System.Threading.Tasks.Task.CancellationToken"/> to observe while waiting for a task to complete.
4042 </param>
4043 <returns>
4044 The index of the completed task in the <paramref name="tasks"/> array argument, or -1 if the
4045 timeout occurred.
4046 </returns>
4047 <exception cref="T:System.ArgumentNullException">
4048 The <paramref name="tasks"/> argument is null.
4049 </exception>
4050 <exception cref="T:System.ArgumentException">
4051 The <paramref name="tasks"/> argument contains a null element.
4052 </exception>
4053 <exception cref="T:System.ObjectDisposedException">
4054 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
4055 </exception>
4056 <exception cref="T:ArgumentOutOfRangeException">
4057 <paramref name="millisecondsTimeout"/> is a negative number other than -1, which represents an
4058 infinite time-out.
4059 </exception>
4060 <exception cref="T:System.OperationCanceledException2">
4061 The <paramref name="cancellationToken"/> was canceled.
4062 </exception>
4063 </member>
4064 <member name="P:System.Threading.Tasks.Task.Id">
4065 <summary>
4066 Gets a unique ID for this <see cref="T:System.Threading.Tasks.Task">Task</see> instance.
4067 </summary>
4068 <remarks>
4069 Task IDs are assigned on-demand and do not necessarily represent the order in the which Task
4070 instances were created.
4071 </remarks>
4072 </member>
4073 <member name="P:System.Threading.Tasks.Task.CurrentId">
4074 <summary>
4075 Returns the unique ID of the currently executing <see cref="T:System.Threading.Tasks.Task">Task</see>.
4076 </summary>
4077 </member>
4078 <member name="P:System.Threading.Tasks.Task.InternalCurrent">
4079 <summary>
4080 Gets the <see cref="T:System.Threading.Tasks.Task">Task</see> instance currently executing, or
4081 null if none exists.
4082 </summary>
4083 </member>
4084 <member name="P:System.Threading.Tasks.Task.Exception">
4085 <summary>
4086 Gets the <see cref="T:System.AggregateException">Exception</see> that caused the <see cref="T:System.Threading.Tasks.Task">Task</see> to end prematurely. If the <see cref="T:System.Threading.Tasks.Task">Task</see> completed successfully or has not yet thrown any
4087 exceptions, this will return null.
4088 </summary>
4089 <remarks>
4090 Tasks that throw unhandled exceptions store the resulting exception and propagate it wrapped in a
4091 <see cref="T:System.AggregateException"/> in calls to <see cref="M:System.Threading.Tasks.Task.Wait">Wait</see>
4092 or in accesses to the <see cref="P:System.Threading.Tasks.Task.Exception"/> property. Any exceptions not observed by the time
4093 the Task instance is garbage collected will be propagated on the finalizer thread.
4094 </remarks>
4095 <exception cref="T:System.ObjectDisposedException">
4096 The <see cref="T:System.Threading.Tasks.Task">Task</see>
4097 has been disposed.
4098 </exception>
4099 </member>
4100 <member name="P:System.Threading.Tasks.Task.Status">
4101 <summary>
4102 Gets the <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> of this Task.
4103 </summary>
4104 </member>
4105 <member name="P:System.Threading.Tasks.Task.IsCanceled">
4106 <summary>
4107 Gets whether this <see cref="T:System.Threading.Tasks.Task">Task</see> instance has completed
4108 execution due to being canceled.
4109 </summary>
4110 <remarks>
4111 A <see cref="T:System.Threading.Tasks.Task">Task</see> will complete in Canceled state either if its <see cref="P:System.Threading.Tasks.Task.CancellationToken">CancellationToken</see>
4112 was marked for cancellation before the task started executing, or if the task acknowledged the cancellation request on
4113 its already signaled CancellationToken by throwing an
4114 <see cref="T:System.OperationCanceledException">OperationCanceledException2</see> that bears the same
4115 <see cref="T:System.Threading.CancellationToken">CancellationToken</see>.
4116 </remarks>
4117 </member>
4118 <member name="P:System.Threading.Tasks.Task.IsCancellationRequested">
4119 <summary>
4120 Returns true if this task has a cancellation token and it was signaled.
4121 To be used internally in execute entry codepaths.
4122 </summary>
4123 </member>
4124 <member name="P:System.Threading.Tasks.Task.CancellationToken">
4125 <summary>
4126 This internal property provides access to the CancellationToken that was set on the task
4127 when it was constructed.
4128 </summary>
4129 </member>
4130 <member name="P:System.Threading.Tasks.Task.IsCancellationAcknowledged">
4131 <summary>
4132 Gets whether this <see cref="T:System.Threading.Tasks.Task"/> threw an OperationCanceledException2 while its CancellationToken was signaled.
4133 </summary>
4134 </member>
4135 <member name="P:System.Threading.Tasks.Task.IsCompleted">
4136 <summary>
4137 Gets whether this <see cref="T:System.Threading.Tasks.Task">Task</see> has completed.
4138 </summary>
4139 <remarks>
4140 <see cref="P:System.Threading.Tasks.Task.IsCompleted"/> will return true when the Task is in one of the three
4141 final states: <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
4142 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
4143 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
4144 </remarks>
4145 </member>
4146 <member name="P:System.Threading.Tasks.Task.IsDisposed">
4147 <summary>
4148 Checks whether this task has been disposed.
4149 </summary>
4150 </member>
4151 <member name="P:System.Threading.Tasks.Task.CreationOptions">
4152 <summary>
4153 Gets the <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions</see> used
4154 to create this task.
4155 </summary>
4156 </member>
4157 <member name="P:System.Threading.Tasks.Task.System#IAsyncResult#AsyncWaitHandle">
4158 <summary>
4159 Gets a <see cref="T:System.Threading.WaitHandle"/> that can be used to wait for the task to
4160 complete.
4161 </summary>
4162 <remarks>
4163 Using the wait functionality provided by <see cref="M:System.Threading.Tasks.Task.Wait"/>
4164 should be preferred over using <see cref="P:System.IAsyncResult.AsyncWaitHandle"/> for similar
4165 functionality.
4166 </remarks>
4167 <exception cref="T:System.ObjectDisposedException">
4168 The <see cref="T:System.Threading.Tasks.Task"/> has been disposed.
4169 </exception>
4170 </member>
4171 <member name="P:System.Threading.Tasks.Task.AsyncState">
4172 <summary>
4173 Gets the state object supplied when the <see cref="T:System.Threading.Tasks.Task">Task</see> was created,
4174 or null if none was supplied.
4175 </summary>
4176 </member>
4177 <member name="P:System.Threading.Tasks.Task.System#IAsyncResult#CompletedSynchronously">
4178 <summary>
4179 Gets an indication of whether the asynchronous operation completed synchronously.
4180 </summary>
4181 <value>true if the asynchronous operation completed synchronously; otherwise, false.</value>
4182 </member>
4183 <member name="P:System.Threading.Tasks.Task.ExecutingTaskScheduler">
4184 <summary>
4185 Provides access to the TaskScheduler responsible for executing this Task.
4186 </summary>
4187 </member>
4188 <member name="P:System.Threading.Tasks.Task.Factory">
4189 <summary>
4190 Provides access to factory methods for creating <see cref="T:System.Threading.Tasks.Task"/> and <see cref="T:System.Threading.Tasks.Task`1"/> instances.
4191 </summary>
4192 <remarks>
4193 The factory returned from <see cref="P:System.Threading.Tasks.Task.Factory"/> is a default instance
4194 of <see cref="T:System.Threading.Tasks.TaskFactory"/>, as would result from using
4195 the default constructor on TaskFactory.
4196 </remarks>
4197 </member>
4198 <member name="P:System.Threading.Tasks.Task.CompletedEvent">
4199 <summary>
4200 Provides an event that can be used to wait for completion.
4201 Only called by Wait*(), which means that we really do need to instantiate a completion event.
4202 </summary>
4203 </member>
4204 <member name="P:System.Threading.Tasks.Task.IsSelfReplicatingRoot">
4205 <summary>
4206 Determines whether this is the root task of a self replicating group.
4207 </summary>
4208 </member>
4209 <member name="P:System.Threading.Tasks.Task.IsChildReplica">
4210 <summary>
4211 Determines whether the task is a replica itself.
4212 </summary>
4213 </member>
4214 <member name="P:System.Threading.Tasks.Task.ExceptionRecorded">
4215 <summary>
4216 The property formerly known as IsFaulted.
4217 </summary>
4218 </member>
4219 <member name="P:System.Threading.Tasks.Task.IsFaulted">
4220 <summary>
4221 Gets whether the <see cref="T:System.Threading.Tasks.Task"/> completed due to an unhandled exception.
4222 </summary>
4223 <remarks>
4224 If <see cref="P:System.Threading.Tasks.Task.IsFaulted"/> is true, the Task's <see cref="P:System.Threading.Tasks.Task.Status"/> will be equal to
4225 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">TaskStatus.Faulted</see>, and its
4226 <see cref="P:System.Threading.Tasks.Task.Exception"/> property will be non-null.
4227 </remarks>
4228 </member>
4229 <member name="P:System.Threading.Tasks.Task.IsExceptionObservedByParent">
4230 <summary>
4231 Checks whether the TASK_STATE_EXCEPTIONOBSERVEDBYPARENT status flag is set,
4232 This will only be used by the implicit wait to prevent double throws
4233
4234 </summary>
4235 </member>
4236 <member name="P:System.Threading.Tasks.Task.IsDelegateInvoked">
4237 <summary>
4238 Checks whether the body was ever invoked. Used by task scheduler code to verify custom schedulers actually ran the task.
4239 </summary>
4240 </member>
4241 <member name="T:System.Threading.Tasks.Task.TaskContinuation">
4242 <summary>
4243 A structure to hold continuation information.
4244 </summary>
4245 </member>
4246 <member name="M:System.Threading.Tasks.Task.TaskContinuation.#ctor(System.Threading.Tasks.Task,System.Threading.Tasks.TaskScheduler,System.Threading.Tasks.TaskContinuationOptions)">
4247 <summary>
4248 Constructs a new continuation structure.
4249 </summary>
4250 <param name="task">The task to be activated.</param>
4251 <param name="options">The continuation options.</param>
4252 <param name="scheduler">The scheduler to use for the continuation.</param>
4253 </member>
4254 <member name="M:System.Threading.Tasks.Task.TaskContinuation.Run(System.Threading.Tasks.Task,System.Boolean)">
4255 <summary>
4256 Invokes the continuation for the target completion task.
4257 </summary>
4258 <param name="completedTask">The completed task.</param>
4259 <param name="bCanInlineContinuationTask">Whether the continuation can be inlined.</param>
4260 </member>
4261 <member name="M:System.Threading.Tasks.Task`1.#ctor(System.Func{`0})">
4262 <summary>
4263 Initializes a new <see cref="T:System.Threading.Tasks.Task`1"/> with the specified function.
4264 </summary>
4265 <param name="function">
4266 The delegate that represents the code to execute in the task. When the function has completed,
4267 the task's <see cref="P:System.Threading.Tasks.Task`1.Result"/> property will be set to return the result value of the function.
4268 </param>
4269 <exception cref="T:System.ArgumentException">
4270 The <paramref name="function"/> argument is null.
4271 </exception>
4272 </member>
4273 <member name="M:System.Threading.Tasks.Task`1.#ctor(System.Func{`0},System.Threading.CancellationToken)">
4274 <summary>
4275 Initializes a new <see cref="T:System.Threading.Tasks.Task`1"/> with the specified function.
4276 </summary>
4277 <param name="function">
4278 The delegate that represents the code to execute in the task. When the function has completed,
4279 the task's <see cref="P:System.Threading.Tasks.Task`1.Result"/> property will be set to return the result value of the function.
4280 </param>
4281 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> to be assigned to this task.</param>
4282 <exception cref="T:System.ArgumentException">
4283 The <paramref name="function"/> argument is null.
4284 </exception>
4285 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
4286 has already been disposed.
4287 </exception>
4288 </member>
4289 <member name="M:System.Threading.Tasks.Task`1.#ctor(System.Func{`0},System.Threading.Tasks.TaskCreationOptions)">
4290 <summary>
4291 Initializes a new <see cref="T:System.Threading.Tasks.Task`1"/> with the specified function and creation options.
4292 </summary>
4293 <param name="function">
4294 The delegate that represents the code to execute in the task. When the function has completed,
4295 the task's <see cref="P:System.Threading.Tasks.Task`1.Result"/> property will be set to return the result value of the function.
4296 </param>
4297 <param name="creationOptions">
4298 The <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions</see> used to
4299 customize the task's behavior.
4300 </param>
4301 <exception cref="T:System.ArgumentException">
4302 The <paramref name="function"/> argument is null.
4303 </exception>
4304 <exception cref="T:ArgumentOutOfRangeException">
4305 The <paramref name="creationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskCreationOptions"/>.
4306 </exception>
4307 </member>
4308 <member name="M:System.Threading.Tasks.Task`1.#ctor(System.Func{`0},System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions)">
4309 <summary>
4310 Initializes a new <see cref="T:System.Threading.Tasks.Task`1"/> with the specified function and creation options.
4311 </summary>
4312 <param name="function">
4313 The delegate that represents the code to execute in the task. When the function has completed,
4314 the task's <see cref="P:System.Threading.Tasks.Task`1.Result"/> property will be set to return the result value of the function.
4315 </param>
4316 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> that will be assigned to the new task.</param>
4317 <param name="creationOptions">
4318 The <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions</see> used to
4319 customize the task's behavior.
4320 </param>
4321 <exception cref="T:System.ArgumentException">
4322 The <paramref name="function"/> argument is null.
4323 </exception>
4324 <exception cref="T:ArgumentOutOfRangeException">
4325 The <paramref name="creationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskCreationOptions"/>.
4326 </exception>
4327 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
4328 has already been disposed.
4329 </exception>
4330 </member>
4331 <member name="M:System.Threading.Tasks.Task`1.#ctor(System.Func{System.Object,`0},System.Object)">
4332 <summary>
4333 Initializes a new <see cref="T:System.Threading.Tasks.Task`1"/> with the specified function and state.
4334 </summary>
4335 <param name="function">
4336 The delegate that represents the code to execute in the task. When the function has completed,
4337 the task's <see cref="P:System.Threading.Tasks.Task`1.Result"/> property will be set to return the result value of the function.
4338 </param>
4339 <param name="state">An object representing data to be used by the action.</param>
4340 <exception cref="T:System.ArgumentException">
4341 The <paramref name="function"/> argument is null.
4342 </exception>
4343 </member>
4344 <member name="M:System.Threading.Tasks.Task`1.#ctor(System.Func{System.Object,`0},System.Object,System.Threading.CancellationToken)">
4345 <summary>
4346 Initializes a new <see cref="T:System.Threading.Tasks.Task`1"/> with the specified action, state, and options.
4347 </summary>
4348 <param name="function">
4349 The delegate that represents the code to execute in the task. When the function has completed,
4350 the task's <see cref="P:System.Threading.Tasks.Task`1.Result"/> property will be set to return the result value of the function.
4351 </param>
4352 <param name="state">An object representing data to be used by the function.</param>
4353 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> to be assigned to the new task.</param>
4354 <exception cref="T:System.ArgumentException">
4355 The <paramref name="function"/> argument is null.
4356 </exception>
4357 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
4358 has already been disposed.
4359 </exception>
4360 </member>
4361 <member name="M:System.Threading.Tasks.Task`1.#ctor(System.Func{System.Object,`0},System.Object,System.Threading.Tasks.TaskCreationOptions)">
4362 <summary>
4363 Initializes a new <see cref="T:System.Threading.Tasks.Task`1"/> with the specified action, state, and options.
4364 </summary>
4365 <param name="function">
4366 The delegate that represents the code to execute in the task. When the function has completed,
4367 the task's <see cref="P:System.Threading.Tasks.Task`1.Result"/> property will be set to return the result value of the function.
4368 </param>
4369 <param name="state">An object representing data to be used by the function.</param>
4370 <param name="creationOptions">
4371 The <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions</see> used to
4372 customize the task's behavior.
4373 </param>
4374 <exception cref="T:System.ArgumentException">
4375 The <paramref name="function"/> argument is null.
4376 </exception>
4377 <exception cref="T:ArgumentOutOfRangeException">
4378 The <paramref name="creationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskCreationOptions"/>.
4379 </exception>
4380 </member>
4381 <member name="M:System.Threading.Tasks.Task`1.#ctor(System.Func{System.Object,`0},System.Object,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions)">
4382 <summary>
4383 Initializes a new <see cref="T:System.Threading.Tasks.Task`1"/> with the specified action, state, and options.
4384 </summary>
4385 <param name="function">
4386 The delegate that represents the code to execute in the task. When the function has completed,
4387 the task's <see cref="P:System.Threading.Tasks.Task`1.Result"/> property will be set to return the result value of the function.
4388 </param>
4389 <param name="state">An object representing data to be used by the function.</param>
4390 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> to be assigned to the new task.</param>
4391 <param name="creationOptions">
4392 The <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions</see> used to
4393 customize the task's behavior.
4394 </param>
4395 <exception cref="T:System.ArgumentException">
4396 The <paramref name="function"/> argument is null.
4397 </exception>
4398 <exception cref="T:ArgumentOutOfRangeException">
4399 The <paramref name="creationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskCreationOptions"/>.
4400 </exception>
4401 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
4402 has already been disposed.
4403 </exception>
4404 </member>
4405 <member name="M:System.Threading.Tasks.Task`1.#ctor(System.Func{`0},System.Threading.Tasks.Task,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.InternalTaskOptions,System.Threading.Tasks.TaskScheduler)">
4406 <summary>
4407 Creates a new future object.
4408 </summary>
4409 <param name="parent">The parent task for this future.</param>
4410 <param name="valueSelector">A function that yields the future value.</param>
4411 <param name="scheduler">The task scheduler which will be used to execute the future.</param>
4412 <param name="cancellationToken">The CancellationToken for the task.</param>
4413 <param name="creationOptions">Options to control the future's behavior.</param>
4414 <param name="internalOptions">Internal options to control the future's behavior.</param>
4415 <exception cref="T:ArgumentOutOfRangeException">The <paramref name="creationOptions"/> argument specifies
4416 a SelfReplicating <see cref="T:System.Threading.Tasks.Task`1"/>, which is illegal."/&gt;.</exception>
4417 </member>
4418 <member name="M:System.Threading.Tasks.Task`1.#ctor(System.Func{System.Object,`0},System.Object,System.Threading.Tasks.Task,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.InternalTaskOptions,System.Threading.Tasks.TaskScheduler)">
4419 <summary>
4420 Creates a new future object.
4421 </summary>
4422 <param name="parent">The parent task for this future.</param>
4423 <param name="state">An object containing data to be used by the action; may be null.</param>
4424 <param name="valueSelector">A function that yields the future value.</param>
4425 <param name="cancellationToken">The CancellationToken for the task.</param>
4426 <param name="scheduler">The task scheduler which will be used to execute the future.</param>
4427 <param name="creationOptions">Options to control the future's behavior.</param>
4428 <param name="internalOptions">Internal options to control the future's behavior.</param>
4429 <exception cref="T:ArgumentOutOfRangeException">The <paramref name="creationOptions"/> argument specifies
4430 a SelfReplicating <see cref="T:System.Threading.Tasks.Task`1"/>, which is illegal."/&gt;.</exception>
4431 </member>
4432 <member name="M:System.Threading.Tasks.Task`1.InvokeFuture(System.Object)">
4433 <summary>
4434 Evaluates the value selector of the Task which is passed in as an object and stores the result.
4435 </summary>
4436 </member>
4437 <member name="M:System.Threading.Tasks.Task`1.ContinueWith(System.Action{System.Threading.Tasks.Task{`0}})">
4438 <summary>
4439 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task`1"/> completes.
4440 </summary>
4441 <param name="continuationAction">
4442 An action to run when the <see cref="T:System.Threading.Tasks.Task`1"/> completes. When run, the delegate will be
4443 passed the completed task as an argument.
4444 </param>
4445 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
4446 <remarks>
4447 The returned <see cref="T:System.Threading.Tasks.Task"/> will not be scheduled for execution until the current task has
4448 completed, whether it completes due to running to completion successfully, faulting due to an
4449 unhandled exception, or exiting out early due to being canceled.
4450 </remarks>
4451 <exception cref="T:System.ArgumentNullException">
4452 The <paramref name="continuationAction"/> argument is null.
4453 </exception>
4454 <exception cref="T:System.ObjectDisposedException">
4455 The <see cref="T:System.Threading.Tasks.Task`1"/> has been disposed.
4456 </exception>
4457 </member>
4458 <member name="M:System.Threading.Tasks.Task`1.ContinueWith(System.Action{System.Threading.Tasks.Task{`0}},System.Threading.CancellationToken)">
4459 <summary>
4460 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task`1"/> completes.
4461 </summary>
4462 <param name="continuationAction">
4463 An action to run when the <see cref="T:System.Threading.Tasks.Task`1"/> completes. When run, the delegate will be
4464 passed the completed task as an argument.
4465 </param>
4466 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> that will be assigned to the new continuation task.</param>
4467 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
4468 <remarks>
4469 The returned <see cref="T:System.Threading.Tasks.Task"/> will not be scheduled for execution until the current task has
4470 completed, whether it completes due to running to completion successfully, faulting due to an
4471 unhandled exception, or exiting out early due to being canceled.
4472 </remarks>
4473 <exception cref="T:System.ArgumentNullException">
4474 The <paramref name="continuationAction"/> argument is null.
4475 </exception>
4476 <exception cref="T:System.ObjectDisposedException">
4477 The <see cref="T:System.Threading.Tasks.Task`1"/> has been disposed.
4478 </exception>
4479 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
4480 has already been disposed.
4481 </exception>
4482 </member>
4483 <member name="M:System.Threading.Tasks.Task`1.ContinueWith(System.Action{System.Threading.Tasks.Task{`0}},System.Threading.Tasks.TaskScheduler)">
4484 <summary>
4485 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task`1"/> completes.
4486 </summary>
4487 <param name="continuationAction">
4488 An action to run when the <see cref="T:System.Threading.Tasks.Task`1"/> completes. When run, the delegate will be
4489 passed the completed task as an argument.
4490 </param>
4491 <param name="scheduler">
4492 The <see cref="T:System.Threading.Tasks.TaskScheduler"/> to associate with the continuation task and to use for its execution.
4493 </param>
4494 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
4495 <remarks>
4496 The returned <see cref="T:System.Threading.Tasks.Task"/> will not be scheduled for execution until the current task has
4497 completed, whether it completes due to running to completion successfully, faulting due to an
4498 unhandled exception, or exiting out early due to being canceled.
4499 </remarks>
4500 <exception cref="T:System.ArgumentNullException">
4501 The <paramref name="continuationAction"/> argument is null.
4502 </exception>
4503 <exception cref="T:System.ArgumentNullException">
4504 The <paramref name="scheduler"/> argument is null.
4505 </exception>
4506 <exception cref="T:System.ObjectDisposedException">
4507 The <see cref="T:System.Threading.Tasks.Task`1"/> has been disposed.
4508 </exception>
4509 </member>
4510 <member name="M:System.Threading.Tasks.Task`1.ContinueWith(System.Action{System.Threading.Tasks.Task{`0}},System.Threading.Tasks.TaskContinuationOptions)">
4511 <summary>
4512 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task`1"/> completes.
4513 </summary>
4514 <param name="continuationAction">
4515 An action to run when the <see cref="T:System.Threading.Tasks.Task`1"/> completes. When run, the delegate will be
4516 passed the completed task as an argument.
4517 </param>
4518 <param name="continuationOptions">
4519 Options for when the continuation is scheduled and how it behaves. This includes criteria, such
4520 as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as
4521 well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>.
4522 </param>
4523 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
4524 <remarks>
4525 The returned <see cref="T:System.Threading.Tasks.Task"/> will not be scheduled for execution until the current task has
4526 completed. If the continuation criteria specified through the <paramref name="continuationOptions"/> parameter are not met, the continuation task will be canceled
4527 instead of scheduled.
4528 </remarks>
4529 <exception cref="T:System.ArgumentNullException">
4530 The <paramref name="continuationAction"/> argument is null.
4531 </exception>
4532 <exception cref="T:ArgumentOutOfRangeException">
4533 The <paramref name="continuationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>.
4534 </exception>
4535 <exception cref="T:System.ObjectDisposedException">
4536 The <see cref="T:System.Threading.Tasks.Task`1"/> has been disposed.
4537 </exception>
4538 </member>
4539 <member name="M:System.Threading.Tasks.Task`1.ContinueWith(System.Action{System.Threading.Tasks.Task{`0}},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
4540 <summary>
4541 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task`1"/> completes.
4542 </summary>
4543 <param name="continuationAction">
4544 An action to run when the <see cref="T:System.Threading.Tasks.Task`1"/> completes. When run, the delegate will be
4545 passed the completed task as an argument.
4546 </param>
4547 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> that will be assigned to the new continuation task.</param>
4548 <param name="continuationOptions">
4549 Options for when the continuation is scheduled and how it behaves. This includes criteria, such
4550 as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as
4551 well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>.
4552 </param>
4553 <param name="scheduler">
4554 The <see cref="T:System.Threading.Tasks.TaskScheduler"/> to associate with the continuation task and to use for its
4555 execution.
4556 </param>
4557 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
4558 <remarks>
4559 The returned <see cref="T:System.Threading.Tasks.Task"/> will not be scheduled for execution until the current task has
4560 completed. If the criteria specified through the <paramref name="continuationOptions"/> parameter
4561 are not met, the continuation task will be canceled instead of scheduled.
4562 </remarks>
4563 <exception cref="T:System.ArgumentNullException">
4564 The <paramref name="continuationAction"/> argument is null.
4565 </exception>
4566 <exception cref="T:ArgumentOutOfRangeException">
4567 The <paramref name="continuationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>.
4568 </exception>
4569 <exception cref="T:System.ArgumentNullException">
4570 The <paramref name="scheduler"/> argument is null.
4571 </exception>
4572 <exception cref="T:System.ObjectDisposedException">
4573 The <see cref="T:System.Threading.Tasks.Task`1"/> has been disposed.
4574 </exception>
4575 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
4576 has already been disposed.
4577 </exception>
4578 </member>
4579 <member name="M:System.Threading.Tasks.Task`1.ContinueWith``1(System.Func{System.Threading.Tasks.Task{`0},``0})">
4580 <summary>
4581 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task`1"/> completes.
4582 </summary>
4583 <typeparam name="TNewResult">
4584 The type of the result produced by the continuation.
4585 </typeparam>
4586 <param name="continuationFunction">
4587 A function to run when the <see cref="T:System.Threading.Tasks.Task`1"/> completes. When run, the delegate will be
4588 passed the completed task as an argument.
4589 </param>
4590 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
4591 <remarks>
4592 The returned <see cref="T:System.Threading.Tasks.Task`1"/> will not be scheduled for execution until the current
4593 task has completed, whether it completes due to running to completion successfully, faulting due
4594 to an unhandled exception, or exiting out early due to being canceled.
4595 </remarks>
4596 <exception cref="T:System.ArgumentNullException">
4597 The <paramref name="continuationFunction"/> argument is null.
4598 </exception>
4599 <exception cref="T:System.ObjectDisposedException">
4600 The <see cref="T:System.Threading.Tasks.Task`1"/> has been disposed.
4601 </exception>
4602 </member>
4603 <member name="M:System.Threading.Tasks.Task`1.ContinueWith``1(System.Func{System.Threading.Tasks.Task{`0},``0},System.Threading.CancellationToken)">
4604 <summary>
4605 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task`1"/> completes.
4606 </summary>
4607 <typeparam name="TNewResult">
4608 The type of the result produced by the continuation.
4609 </typeparam>
4610 <param name="continuationFunction">
4611 A function to run when the <see cref="T:System.Threading.Tasks.Task`1"/> completes. When run, the delegate will be
4612 passed the completed task as an argument.
4613 </param>
4614 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> that will be assigned to the new task.</param>
4615 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
4616 <remarks>
4617 The returned <see cref="T:System.Threading.Tasks.Task`1"/> will not be scheduled for execution until the current
4618 task has completed, whether it completes due to running to completion successfully, faulting due
4619 to an unhandled exception, or exiting out early due to being canceled.
4620 </remarks>
4621 <exception cref="T:System.ArgumentNullException">
4622 The <paramref name="continuationFunction"/> argument is null.
4623 </exception>
4624 <exception cref="T:System.ObjectDisposedException">
4625 The <see cref="T:System.Threading.Tasks.Task`1"/> has been disposed.
4626 </exception>
4627 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
4628 has already been disposed.
4629 </exception>
4630 </member>
4631 <member name="M:System.Threading.Tasks.Task`1.ContinueWith``1(System.Func{System.Threading.Tasks.Task{`0},``0},System.Threading.Tasks.TaskScheduler)">
4632 <summary>
4633 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task`1"/> completes.
4634 </summary>
4635 <typeparam name="TNewResult">
4636 The type of the result produced by the continuation.
4637 </typeparam>
4638 <param name="continuationFunction">
4639 A function to run when the <see cref="T:System.Threading.Tasks.Task`1"/> completes. When run, the delegate will be
4640 passed the completed task as an argument.
4641 </param>
4642 <param name="scheduler">
4643 The <see cref="T:System.Threading.Tasks.TaskScheduler"/> to associate with the continuation task and to use for its execution.
4644 </param>
4645 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
4646 <remarks>
4647 The returned <see cref="T:System.Threading.Tasks.Task`1"/> will not be scheduled for execution until the current task has
4648 completed, whether it completes due to running to completion successfully, faulting due to an
4649 unhandled exception, or exiting out early due to being canceled.
4650 </remarks>
4651 <exception cref="T:System.ArgumentNullException">
4652 The <paramref name="continuationFunction"/> argument is null.
4653 </exception>
4654 <exception cref="T:System.ArgumentNullException">
4655 The <paramref name="scheduler"/> argument is null.
4656 </exception>
4657 <exception cref="T:System.ObjectDisposedException">
4658 The <see cref="T:System.Threading.Tasks.Task`1"/> has been disposed.
4659 </exception>
4660 </member>
4661 <member name="M:System.Threading.Tasks.Task`1.ContinueWith``1(System.Func{System.Threading.Tasks.Task{`0},``0},System.Threading.Tasks.TaskContinuationOptions)">
4662 <summary>
4663 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task`1"/> completes.
4664 </summary>
4665 <typeparam name="TNewResult">
4666 The type of the result produced by the continuation.
4667 </typeparam>
4668 <param name="continuationFunction">
4669 A function to run when the <see cref="T:System.Threading.Tasks.Task`1"/> completes. When run, the delegate will be
4670 passed the completed task as an argument.
4671 </param>
4672 <param name="continuationOptions">
4673 Options for when the continuation is scheduled and how it behaves. This includes criteria, such
4674 as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as
4675 well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>.
4676 </param>
4677 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
4678 <remarks>
4679 <para>
4680 The returned <see cref="T:System.Threading.Tasks.Task`1"/> will not be scheduled for execution until the current
4681 task has completed, whether it completes due to running to completion successfully, faulting due
4682 to an unhandled exception, or exiting out early due to being canceled.
4683 </para>
4684 <para>
4685 The <paramref name="continuationFunction"/>, when executed, should return a <see cref="T:System.Threading.Tasks.Task`1"/>. This task's completion state will be transferred to the task returned
4686 from the ContinueWith call.
4687 </para>
4688 </remarks>
4689 <exception cref="T:System.ArgumentNullException">
4690 The <paramref name="continuationFunction"/> argument is null.
4691 </exception>
4692 <exception cref="T:ArgumentOutOfRangeException">
4693 The <paramref name="continuationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>.
4694 </exception>
4695 <exception cref="T:System.ObjectDisposedException">
4696 The <see cref="T:System.Threading.Tasks.Task`1"/> has been disposed.
4697 </exception>
4698 </member>
4699 <member name="M:System.Threading.Tasks.Task`1.ContinueWith``1(System.Func{System.Threading.Tasks.Task{`0},``0},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
4700 <summary>
4701 Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task`1"/> completes.
4702 </summary>
4703 <typeparam name="TNewResult">
4704 The type of the result produced by the continuation.
4705 </typeparam>
4706 <param name="continuationFunction">
4707 A function to run when the <see cref="T:System.Threading.Tasks.Task`1"/> completes. When run, the delegate will be passed as
4708 an argument this completed task.
4709 </param>
4710 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> that will be assigned to the new task.</param>
4711 <param name="continuationOptions">
4712 Options for when the continuation is scheduled and how it behaves. This includes criteria, such
4713 as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as
4714 well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>.
4715 </param>
4716 <param name="scheduler">
4717 The <see cref="T:System.Threading.Tasks.TaskScheduler"/> to associate with the continuation task and to use for its
4718 execution.
4719 </param>
4720 <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
4721 <remarks>
4722 <para>
4723 The returned <see cref="T:System.Threading.Tasks.Task`1"/> will not be scheduled for execution until the current task has
4724 completed, whether it completes due to running to completion successfully, faulting due to an
4725 unhandled exception, or exiting out early due to being canceled.
4726 </para>
4727 <para>
4728 The <paramref name="continuationFunction"/>, when executed, should return a <see cref="T:System.Threading.Tasks.Task`1"/>.
4729 This task's completion state will be transferred to the task returned from the
4730 ContinueWith call.
4731 </para>
4732 </remarks>
4733 <exception cref="T:System.ArgumentNullException">
4734 The <paramref name="continuationFunction"/> argument is null.
4735 </exception>
4736 <exception cref="T:ArgumentOutOfRangeException">
4737 The <paramref name="continuationOptions"/> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>.
4738 </exception>
4739 <exception cref="T:System.ArgumentNullException">
4740 The <paramref name="scheduler"/> argument is null.
4741 </exception>
4742 <exception cref="T:System.ObjectDisposedException">
4743 The <see cref="T:System.Threading.Tasks.Task`1"/> has been disposed.
4744 </exception>
4745 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
4746 has already been disposed.
4747 </exception>
4748 </member>
4749 <member name="P:System.Threading.Tasks.Task`1.Result">
4750 <summary>
4751 Gets the result value of this <see cref="T:System.Threading.Tasks.Task`1"/>.
4752 </summary>
4753 <remarks>
4754 The get accessor for this property ensures that the asynchronous operation is complete before
4755 returning. Once the result of the computation is available, it is stored and will be returned
4756 immediately on later calls to <see cref="P:System.Threading.Tasks.Task`1.Result"/>.
4757 </remarks>
4758 </member>
4759 <member name="P:System.Threading.Tasks.Task`1.Factory">
4760 <summary>
4761 Provides access to factory methods for creating <see cref="T:System.Threading.Tasks.Task`1"/> instances.
4762 </summary>
4763 <remarks>
4764 The factory returned from <see cref="P:System.Threading.Tasks.Task`1.Factory"/> is a default instance
4765 of <see cref="T:System.Threading.Tasks.TaskFactory`1"/>, as would result from using
4766 the default constructor on the factory type.
4767 </remarks>
4768 </member>
4769 <member name="T:System.Threading.Tasks.TaskFactory`1">
4770 <summary>
4771 Provides support for creating and scheduling
4772 <see cref="T:System.Threading.Tasks.Task{TResult}">Task{TResult}</see> objects.
4773 </summary>
4774 <typeparam name="TResult">The type of the results that are available though
4775 the <see cref="T:System.Threading.Tasks.Task{TResult}">Task{TResult}</see> objects that are associated with
4776 the methods in this class.</typeparam>
4777 <remarks>
4778 <para>
4779 There are many common patterns for which tasks are relevant. The <see cref="T:System.Threading.Tasks.TaskFactory`1"/>
4780 class encodes some of these patterns into methods that pick up default settings, which are
4781 configurable through its constructors.
4782 </para>
4783 <para>
4784 A default instance of <see cref="T:System.Threading.Tasks.TaskFactory`1"/> is available through the
4785 <see cref="P:System.Threading.Tasks.Task`1.Factory">Task{TResult}.Factory</see> property.
4786 </para>
4787 </remarks>
4788 </member>
4789 <member name="M:System.Threading.Tasks.TaskFactory`1.#ctor">
4790 <summary>
4791 Initializes a <see cref="T:System.Threading.Tasks.TaskFactory`1"/> instance with the default configuration.
4792 </summary>
4793 <remarks>
4794 This constructor creates a <see cref="T:System.Threading.Tasks.TaskFactory`1"/> instance with a default configuration. The
4795 <see cref="T:System.Threading.Tasks.TaskCreationOptions"/> property is initialized to
4796 <see cref="F:System.Threading.Tasks.TaskCreationOptions.None">TaskCreationOptions.None</see>, the
4797 <see cref="T:System.Threading.Tasks.TaskContinuationOptions"/> property is initialized to <see cref="F:System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>,
4798 and the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> property is
4799 initialized to the current scheduler (see <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>).
4800 </remarks>
4801 </member>
4802 <member name="M:System.Threading.Tasks.TaskFactory`1.#ctor(System.Threading.CancellationToken)">
4803 <summary>
4804 Initializes a <see cref="T:System.Threading.Tasks.TaskFactory`1"/> instance with the default configuration.
4805 </summary>
4806 <param name="cancellationToken">The default <see cref="P:System.Threading.Tasks.TaskFactory`1.CancellationToken"/> that will be assigned
4807 to tasks created by this <see cref="T:System.Threading.Tasks.TaskFactory"/> unless another CancellationToken is explicitly specified
4808 while calling the factory methods.</param>
4809 <remarks>
4810 This constructor creates a <see cref="T:System.Threading.Tasks.TaskFactory`1"/> instance with a default configuration. The
4811 <see cref="T:System.Threading.Tasks.TaskCreationOptions"/> property is initialized to
4812 <see cref="F:System.Threading.Tasks.TaskCreationOptions.None">TaskCreationOptions.None</see>, the
4813 <see cref="T:System.Threading.Tasks.TaskContinuationOptions"/> property is initialized to <see cref="F:System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>,
4814 and the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> property is
4815 initialized to the current scheduler (see <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>).
4816 </remarks>
4817 </member>
4818 <member name="M:System.Threading.Tasks.TaskFactory`1.#ctor(System.Threading.Tasks.TaskScheduler)">
4819 <summary>
4820 Initializes a <see cref="T:System.Threading.Tasks.TaskFactory`1"/> instance with the specified configuration.
4821 </summary>
4822 <param name="scheduler">
4823 The <see cref="T:System.Threading.Tasks.TaskScheduler">
4824 TaskScheduler</see> to use to schedule any tasks created with this TaskFactory{TResult}. A null value
4825 indicates that the current TaskScheduler should be used.
4826 </param>
4827 <remarks>
4828 With this constructor, the
4829 <see cref="T:System.Threading.Tasks.TaskCreationOptions"/> property is initialized to
4830 <see cref="F:System.Threading.Tasks.TaskCreationOptions.None">TaskCreationOptions.None</see>, the
4831 <see cref="T:System.Threading.Tasks.TaskContinuationOptions"/> property is initialized to <see cref="F:System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>,
4832 and the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> property is
4833 initialized to <paramref name="scheduler"/>, unless it's null, in which case the property is
4834 initialized to the current scheduler (see <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>).
4835 </remarks>
4836 </member>
4837 <member name="M:System.Threading.Tasks.TaskFactory`1.#ctor(System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskContinuationOptions)">
4838 <summary>
4839 Initializes a <see cref="T:System.Threading.Tasks.TaskFactory`1"/> instance with the specified configuration.
4840 </summary>
4841 <param name="creationOptions">
4842 The default <see cref="T:System.Threading.Tasks.TaskCreationOptions">
4843 TaskCreationOptions</see> to use when creating tasks with this TaskFactory{TResult}.
4844 </param>
4845 <param name="continuationOptions">
4846 The default <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
4847 TaskContinuationOptions</see> to use when creating continuation tasks with this TaskFactory{TResult}.
4848 </param>
4849 <exception cref="T:ArgumentOutOfRangeException">
4850 The exception that is thrown when the
4851 <paramref name="creationOptions"/> argument or the <paramref name="continuationOptions"/>
4852 argument specifies an invalid value.
4853 </exception>
4854 <remarks>
4855 With this constructor, the
4856 <see cref="T:System.Threading.Tasks.TaskCreationOptions"/> property is initialized to <paramref name="creationOptions"/>,
4857 the
4858 <see cref="T:System.Threading.Tasks.TaskContinuationOptions"/> property is initialized to <paramref name="continuationOptions"/>, and the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> property is initialized to the
4859 current scheduler (see <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>).
4860 </remarks>
4861 </member>
4862 <member name="M:System.Threading.Tasks.TaskFactory`1.#ctor(System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
4863 <summary>
4864 Initializes a <see cref="T:System.Threading.Tasks.TaskFactory`1"/> instance with the specified configuration.
4865 </summary>
4866 <param name="cancellationToken">The default <see cref="P:System.Threading.Tasks.TaskFactory`1.CancellationToken"/> that will be assigned
4867 to tasks created by this <see cref="T:System.Threading.Tasks.TaskFactory"/> unless another CancellationToken is explicitly specified
4868 while calling the factory methods.</param>
4869 <param name="creationOptions">
4870 The default <see cref="T:System.Threading.Tasks.TaskCreationOptions">
4871 TaskCreationOptions</see> to use when creating tasks with this TaskFactory{TResult}.
4872 </param>
4873 <param name="continuationOptions">
4874 The default <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
4875 TaskContinuationOptions</see> to use when creating continuation tasks with this TaskFactory{TResult}.
4876 </param>
4877 <param name="scheduler">
4878 The default <see cref="T:System.Threading.Tasks.TaskScheduler">
4879 TaskScheduler</see> to use to schedule any Tasks created with this TaskFactory{TResult}. A null value
4880 indicates that TaskScheduler.Current should be used.
4881 </param>
4882 <exception cref="T:ArgumentOutOfRangeException">
4883 The exception that is thrown when the
4884 <paramref name="creationOptions"/> argument or the <paramref name="continuationOptions"/>
4885 argumentspecifies an invalid value.
4886 </exception>
4887 <remarks>
4888 With this constructor, the
4889 <see cref="T:System.Threading.Tasks.TaskCreationOptions"/> property is initialized to <paramref name="creationOptions"/>,
4890 the
4891 <see cref="T:System.Threading.Tasks.TaskContinuationOptions"/> property is initialized to <paramref name="continuationOptions"/>, and the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> property is initialized to
4892 <paramref name="scheduler"/>, unless it's null, in which case the property is initialized to the
4893 current scheduler (see <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>).
4894 </remarks>
4895 </member>
4896 <member name="M:System.Threading.Tasks.TaskFactory`1.StartNew(System.Func{`0})">
4897 <summary>
4898 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
4899 </summary>
4900 <param name="function">A function delegate that returns the future result to be available through
4901 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
4902 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
4903 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
4904 argument is null.</exception>
4905 <remarks>
4906 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
4907 of its constructors and then calling
4908 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
4909 However, unless creation and scheduling must be separated, StartNew is the recommended approach
4910 for both simplicity and performance.
4911 </remarks>
4912 </member>
4913 <member name="M:System.Threading.Tasks.TaskFactory`1.StartNew(System.Func{`0},System.Threading.CancellationToken)">
4914 <summary>
4915 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
4916 </summary>
4917 <param name="function">A function delegate that returns the future result to be available through
4918 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
4919 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory`1.CancellationToken"/> that will be assigned to the new task.</param>
4920 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
4921 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
4922 argument is null.</exception>
4923 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
4924 has already been disposed.
4925 </exception>
4926 <remarks>
4927 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
4928 of its constructors and then calling
4929 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
4930 However, unless creation and scheduling must be separated, StartNew is the recommended approach
4931 for both simplicity and performance.
4932 </remarks>
4933 </member>
4934 <member name="M:System.Threading.Tasks.TaskFactory`1.StartNew(System.Func{`0},System.Threading.Tasks.TaskCreationOptions)">
4935 <summary>
4936 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
4937 </summary>
4938 <param name="function">A function delegate that returns the future result to be available through
4939 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
4940 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
4941 created
4942 <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
4943 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
4944 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
4945 argument is null.</exception>
4946 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
4947 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
4948 value.</exception>
4949 <remarks>
4950 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
4951 of its constructors and then calling
4952 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
4953 However, unless creation and scheduling must be separated, StartNew is the recommended approach
4954 for both simplicity and performance.
4955 </remarks>
4956 </member>
4957 <member name="M:System.Threading.Tasks.TaskFactory`1.StartNew(System.Func{`0},System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)">
4958 <summary>
4959 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
4960 </summary>
4961 <param name="function">A function delegate that returns the future result to be available through
4962 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
4963 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
4964 created
4965 <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
4966 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory`1.CancellationToken"/> that will be assigned to the new task.</param>
4967 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
4968 that is used to schedule the created <see cref="T:System.Threading.Tasks.Task{TResult}">
4969 Task{TResult}</see>.</param>
4970 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
4971 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
4972 argument is null.</exception>
4973 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="scheduler"/>
4974 argument is null.</exception>
4975 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
4976 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
4977 value.</exception>
4978 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
4979 has already been disposed.
4980 </exception>
4981 <remarks>
4982 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
4983 of its constructors and then calling
4984 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
4985 However, unless creation and scheduling must be separated, StartNew is the recommended approach
4986 for both simplicity and performance.
4987 </remarks>
4988 </member>
4989 <member name="M:System.Threading.Tasks.TaskFactory`1.StartNew(System.Func{System.Object,`0},System.Object)">
4990 <summary>
4991 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
4992 </summary>
4993 <param name="function">A function delegate that returns the future result to be available through
4994 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
4995 <param name="state">An object containing data to be used by the <paramref name="function"/>
4996 delegate.</param>
4997 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
4998 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
4999 argument is null.</exception>
5000 <remarks>
5001 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
5002 of its constructors and then calling
5003 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
5004 However, unless creation and scheduling must be separated, StartNew is the recommended approach
5005 for both simplicity and performance.
5006 </remarks>
5007 </member>
5008 <member name="M:System.Threading.Tasks.TaskFactory`1.StartNew(System.Func{System.Object,`0},System.Object,System.Threading.CancellationToken)">
5009 <summary>
5010 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
5011 </summary>
5012 <param name="function">A function delegate that returns the future result to be available through
5013 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
5014 <param name="state">An object containing data to be used by the <paramref name="function"/>
5015 delegate.</param>
5016 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory`1.CancellationToken"/> that will be assigned to the new task.</param>
5017 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5018 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
5019 argument is null.</exception>
5020 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5021 has already been disposed.
5022 </exception>
5023 <remarks>
5024 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
5025 of its constructors and then calling
5026 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
5027 However, unless creation and scheduling must be separated, StartNew is the recommended approach
5028 for both simplicity and performance.
5029 </remarks>
5030 </member>
5031 <member name="M:System.Threading.Tasks.TaskFactory`1.StartNew(System.Func{System.Object,`0},System.Object,System.Threading.Tasks.TaskCreationOptions)">
5032 <summary>
5033 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
5034 </summary>
5035 <param name="function">A function delegate that returns the future result to be available through
5036 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
5037 <param name="state">An object containing data to be used by the <paramref name="function"/>
5038 delegate.</param>
5039 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
5040 created
5041 <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
5042 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5043 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
5044 argument is null.</exception>
5045 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5046 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
5047 value.</exception>
5048 <remarks>
5049 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
5050 of its constructors and then calling
5051 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
5052 However, unless creation and scheduling must be separated, StartNew is the recommended approach
5053 for both simplicity and performance.
5054 </remarks>
5055 </member>
5056 <member name="M:System.Threading.Tasks.TaskFactory`1.StartNew(System.Func{System.Object,`0},System.Object,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)">
5057 <summary>
5058 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
5059 </summary>
5060 <param name="function">A function delegate that returns the future result to be available through
5061 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
5062 <param name="state">An object containing data to be used by the <paramref name="function"/>
5063 delegate.</param>
5064 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory`1.CancellationToken"/> that will be assigned to the new task.</param>
5065 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
5066 created
5067 <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
5068 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
5069 that is used to schedule the created <see cref="T:System.Threading.Tasks.Task{TResult}">
5070 Task{TResult}</see>.</param>
5071 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5072 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
5073 argument is null.</exception>
5074 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="scheduler"/>
5075 argument is null.</exception>
5076 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5077 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
5078 value.</exception>
5079 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5080 has already been disposed.
5081 </exception>
5082 <remarks>
5083 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
5084 of its constructors and then calling
5085 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
5086 However, unless creation and scheduling must be separated, StartNew is the recommended approach
5087 for both simplicity and performance.
5088 </remarks>
5089 </member>
5090 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync(System.IAsyncResult,System.Func{System.IAsyncResult,`0})">
5091 <summary>
5092 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that executes an end
5093 method function when a specified <see cref="T:System.IAsyncResult">IAsyncResult</see> completes.
5094 </summary>
5095 <param name="asyncResult">The IAsyncResult whose completion should trigger the processing of the
5096 <paramref name="endMethod"/>.</param>
5097 <param name="endMethod">The function delegate that processes the completed <paramref
5098 name="asyncResult"/>.</param>
5099 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5100 <paramref name="asyncResult"/> argument is null.</exception>
5101 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5102 <paramref name="endMethod"/> argument is null.</exception>
5103 <returns>A <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents the
5104 asynchronous operation.</returns>
5105 </member>
5106 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync(System.IAsyncResult,System.Func{System.IAsyncResult,`0},System.Threading.Tasks.TaskCreationOptions)">
5107 <summary>
5108 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that executes an end
5109 method function when a specified <see cref="T:System.IAsyncResult">IAsyncResult</see> completes.
5110 </summary>
5111 <param name="asyncResult">The IAsyncResult whose completion should trigger the processing of the
5112 <paramref name="endMethod"/>.</param>
5113 <param name="endMethod">The function delegate that processes the completed <paramref
5114 name="asyncResult"/>.</param>
5115 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
5116 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5117 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5118 <paramref name="asyncResult"/> argument is null.</exception>
5119 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5120 <paramref name="endMethod"/> argument is null.</exception>
5121 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5122 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
5123 value.</exception>
5124 <returns>A <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents the
5125 asynchronous operation.</returns>
5126 </member>
5127 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync(System.IAsyncResult,System.Func{System.IAsyncResult,`0},System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)">
5128 <summary>
5129 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that executes an end
5130 method function when a specified <see cref="T:System.IAsyncResult">IAsyncResult</see> completes.
5131 </summary>
5132 <param name="asyncResult">The IAsyncResult whose completion should trigger the processing of the
5133 <paramref name="endMethod"/>.</param>
5134 <param name="endMethod">The function delegate that processes the completed <paramref name="asyncResult"/>.</param>
5135 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
5136 that is used to schedule the task that executes the end method.</param>
5137 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
5138 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5139 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5140 <paramref name="asyncResult"/> argument is null.</exception>
5141 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5142 <paramref name="endMethod"/> argument is null.</exception>
5143 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5144 <paramref name="scheduler"/> argument is null.</exception>
5145 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5146 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
5147 value.</exception>
5148 <returns>A <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents the
5149 asynchronous operation.</returns>
5150 </member>
5151 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,`0},System.Object)">
5152 <summary>
5153 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
5154 begin and end methods that conform to the Asynchronous Programming Model pattern.
5155 </summary>
5156 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
5157 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
5158 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
5159 delegate.</param>
5160 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5161 <paramref name="beginMethod"/> argument is null.</exception>
5162 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5163 <paramref name="endMethod"/> argument is null.</exception>
5164 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
5165 represents the asynchronous operation.</returns>
5166 <remarks>
5167 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
5168 </remarks>
5169 </member>
5170 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,`0},System.Object,System.Threading.Tasks.TaskCreationOptions)">
5171 <summary>
5172 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
5173 begin and end methods that conform to the Asynchronous Programming Model pattern.
5174 </summary>
5175 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
5176 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
5177 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
5178 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5179 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
5180 delegate.</param>
5181 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5182 <paramref name="beginMethod"/> argument is null.</exception>
5183 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5184 <paramref name="endMethod"/> argument is null.</exception>
5185 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5186 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
5187 value.</exception>
5188 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
5189 represents the asynchronous operation.</returns>
5190 <remarks>
5191 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
5192 </remarks>
5193 </member>
5194 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync``1(System.Func{``0,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,`0},``0,System.Object)">
5195 <summary>
5196 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
5197 begin and end methods that conform to the Asynchronous Programming Model pattern.
5198 </summary>
5199 <typeparam name="TArg1">The type of the first argument passed to the <paramref
5200 name="beginMethod"/> delegate.</typeparam>
5201 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
5202 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
5203 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
5204 delegate.</param>
5205 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
5206 delegate.</param>
5207 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5208 <paramref name="beginMethod"/> argument is null.</exception>
5209 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5210 <paramref name="endMethod"/> argument is null.</exception>
5211 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
5212 represents the asynchronous operation.</returns>
5213 <remarks>
5214 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
5215 </remarks>
5216 </member>
5217 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync``1(System.Func{``0,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,`0},``0,System.Object,System.Threading.Tasks.TaskCreationOptions)">
5218 <summary>
5219 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
5220 begin and end methods that conform to the Asynchronous Programming Model pattern.
5221 </summary>
5222 <typeparam name="TArg1">The type of the first argument passed to the <paramref
5223 name="beginMethod"/> delegate.</typeparam>
5224 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
5225 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
5226 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
5227 delegate.</param>
5228 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
5229 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5230 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
5231 delegate.</param>
5232 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5233 <paramref name="beginMethod"/> argument is null.</exception>
5234 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5235 <paramref name="endMethod"/> argument is null.</exception>
5236 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5237 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
5238 value.</exception>
5239 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
5240 represents the asynchronous operation.</returns>
5241 <remarks>
5242 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
5243 </remarks>
5244 </member>
5245 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync``2(System.Func{``0,``1,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,`0},``0,``1,System.Object)">
5246 <summary>
5247 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
5248 begin and end methods that conform to the Asynchronous Programming Model pattern.
5249 </summary>
5250 <typeparam name="TArg1">The type of the first argument passed to the <paramref
5251 name="beginMethod"/> delegate.</typeparam>
5252 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
5253 delegate.</typeparam>
5254 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
5255 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
5256 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
5257 delegate.</param>
5258 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
5259 delegate.</param>
5260 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
5261 delegate.</param>
5262 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5263 <paramref name="beginMethod"/> argument is null.</exception>
5264 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5265 <paramref name="endMethod"/> argument is null.</exception>
5266 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
5267 represents the asynchronous operation.</returns>
5268 <remarks>
5269 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
5270 </remarks>
5271 </member>
5272 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync``2(System.Func{``0,``1,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,`0},``0,``1,System.Object,System.Threading.Tasks.TaskCreationOptions)">
5273 <summary>
5274 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
5275 begin and end methods that conform to the Asynchronous Programming Model pattern.
5276 </summary>
5277 <typeparam name="TArg1">The type of the first argument passed to the <paramref
5278 name="beginMethod"/> delegate.</typeparam>
5279 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
5280 delegate.</typeparam>
5281 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
5282 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
5283 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
5284 delegate.</param>
5285 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
5286 delegate.</param>
5287 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
5288 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5289 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
5290 delegate.</param>
5291 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5292 <paramref name="beginMethod"/> argument is null.</exception>
5293 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5294 <paramref name="endMethod"/> argument is null.</exception>
5295 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5296 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
5297 value.</exception>
5298 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
5299 represents the asynchronous operation.</returns>
5300 <remarks>
5301 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
5302 </remarks>
5303 </member>
5304 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync``3(System.Func{``0,``1,``2,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,`0},``0,``1,``2,System.Object)">
5305 <summary>
5306 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
5307 begin and end methods that conform to the Asynchronous Programming Model pattern.
5308 </summary>
5309 <typeparam name="TArg1">The type of the first argument passed to the <paramref
5310 name="beginMethod"/> delegate.</typeparam>
5311 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
5312 delegate.</typeparam>
5313 <typeparam name="TArg3">The type of the third argument passed to <paramref name="beginMethod"/>
5314 delegate.</typeparam>
5315 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
5316 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
5317 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
5318 delegate.</param>
5319 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
5320 delegate.</param>
5321 <param name="arg3">The third argument passed to the <paramref name="beginMethod"/>
5322 delegate.</param>
5323 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
5324 delegate.</param>
5325 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5326 <paramref name="beginMethod"/> argument is null.</exception>
5327 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5328 <paramref name="endMethod"/> argument is null.</exception>
5329 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
5330 represents the asynchronous operation.</returns>
5331 <remarks>
5332 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
5333 </remarks>
5334 </member>
5335 <member name="M:System.Threading.Tasks.TaskFactory`1.FromAsync``3(System.Func{``0,``1,``2,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,`0},``0,``1,``2,System.Object,System.Threading.Tasks.TaskCreationOptions)">
5336 <summary>
5337 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
5338 begin and end methods that conform to the Asynchronous Programming Model pattern.
5339 </summary>
5340 <typeparam name="TArg1">The type of the first argument passed to the <paramref
5341 name="beginMethod"/> delegate.</typeparam>
5342 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
5343 delegate.</typeparam>
5344 <typeparam name="TArg3">The type of the third argument passed to <paramref name="beginMethod"/>
5345 delegate.</typeparam>
5346 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
5347 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
5348 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
5349 delegate.</param>
5350 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
5351 delegate.</param>
5352 <param name="arg3">The third argument passed to the <paramref name="beginMethod"/>
5353 delegate.</param>
5354 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
5355 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5356 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
5357 delegate.</param>
5358 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5359 <paramref name="beginMethod"/> argument is null.</exception>
5360 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5361 <paramref name="endMethod"/> argument is null.</exception>
5362 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5363 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
5364 value.</exception>
5365 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
5366 represents the asynchronous operation.</returns>
5367 <remarks>
5368 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
5369 </remarks>
5370 </member>
5371 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAll(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task[],`0})">
5372 <summary>
5373 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5374 that will be started upon the completion of a set of provided Tasks.
5375 </summary>
5376 <param name="tasks">The array of tasks from which to continue.</param>
5377 <param name="continuationFunction">The function delegate to execute when all tasks in
5378 the <paramref name="tasks"/> array have completed.</param>
5379 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</returns>
5380 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5381 <paramref name="tasks"/> array is null.</exception>
5382 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5383 <paramref name="continuationFunction"/> argument is null.</exception>
5384 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5385 <paramref name="tasks"/> array contains a null value.</exception>
5386 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5387 <paramref name="tasks"/> array is empty.</exception>
5388 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5389 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5390 </member>
5391 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAll(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task[],`0},System.Threading.CancellationToken)">
5392 <summary>
5393 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5394 that will be started upon the completion of a set of provided Tasks.
5395 </summary>
5396 <param name="tasks">The array of tasks from which to continue.</param>
5397 <param name="continuationFunction">The function delegate to execute when all tasks in
5398 the <paramref name="tasks"/> array have completed.</param>
5399 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5400 that will be assigned to the new continuation task.</param>
5401 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</returns>
5402 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5403 <paramref name="tasks"/> array is null.</exception>
5404 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5405 <paramref name="continuationFunction"/> argument is null.</exception>
5406 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5407 <paramref name="tasks"/> array contains a null value.</exception>
5408 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5409 <paramref name="tasks"/> array is empty.</exception>
5410 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5411 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5412 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5413 has already been disposed.
5414 </exception>
5415 </member>
5416 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAll(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task[],`0},System.Threading.Tasks.TaskContinuationOptions)">
5417 <summary>
5418 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5419 that will be started upon the completion of a set of provided Tasks.
5420 </summary>
5421 <param name="tasks">The array of tasks from which to continue.</param>
5422 <param name="continuationFunction">The function delegate to execute when all tasks in the <paramref name="tasks"/> array have completed.</param>
5423 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
5424 TaskContinuationOptions</see> value that controls the behavior of
5425 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5426 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</returns>
5427 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5428 <paramref name="tasks"/> array is null.</exception>
5429 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5430 <paramref name="continuationFunction"/> argument is null.</exception>
5431 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5432 <paramref name="tasks"/> array contains a null value.</exception>
5433 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5434 <paramref name="tasks"/> array is empty.</exception>
5435 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5436 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
5437 value.</exception>
5438 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5439 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5440 <remarks>
5441 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
5442 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
5443 will be executed, are illegal with ContinueWhenAll.
5444 </remarks>
5445 </member>
5446 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAll(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task[],`0},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
5447 <summary>
5448 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5449 that will be started upon the completion of a set of provided Tasks.
5450 </summary>
5451 <param name="tasks">The array of tasks from which to continue.</param>
5452 <param name="continuationFunction">The function delegate to execute when all tasks in the <paramref name="tasks"/> array have completed.</param>
5453 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5454 that will be assigned to the new continuation task.</param>
5455 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
5456 TaskContinuationOptions</see> value that controls the behavior of
5457 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5458 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
5459 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
5460 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</returns>
5461 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5462 <paramref name="tasks"/> array is null.</exception>
5463 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5464 <paramref name="continuationFunction"/> argument is null.</exception>
5465 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5466 <paramref name="scheduler"/> argument is null.</exception>
5467 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5468 <paramref name="tasks"/> array contains a null value.</exception>
5469 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5470 <paramref name="tasks"/> array is empty.</exception>
5471 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5472 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
5473 value.</exception>
5474 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5475 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5476 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5477 has already been disposed.
5478 </exception>
5479 <remarks>
5480 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
5481 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
5482 will be executed, are illegal with ContinueWhenAll.
5483 </remarks>
5484 </member>
5485 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAll``1(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0}[],`0})">
5486 <summary>
5487 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5488 that will be started upon the completion of a set of provided Tasks.
5489 </summary>
5490 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
5491 <param name="tasks">The array of tasks from which to continue.</param>
5492 <param name="continuationFunction">The function delegate to execute when all tasks in the
5493 <paramref name="tasks"/> array have completed.</param>
5494 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5495 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5496 <paramref name="tasks"/> array is null.</exception>
5497 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5498 <paramref name="continuationFunction"/> argument is null.</exception>
5499 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5500 <paramref name="tasks"/> array contains a null value.</exception>
5501 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5502 <paramref name="tasks"/> array is empty.</exception>
5503 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5504 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5505 </member>
5506 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAll``1(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0}[],`0},System.Threading.CancellationToken)">
5507 <summary>
5508 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5509 that will be started upon the completion of a set of provided Tasks.
5510 </summary>
5511 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
5512 <param name="tasks">The array of tasks from which to continue.</param>
5513 <param name="continuationFunction">The function delegate to execute when all tasks in the
5514 <paramref name="tasks"/> array have completed.</param>
5515 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5516 that will be assigned to the new continuation task.</param>
5517 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5518 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5519 <paramref name="tasks"/> array is null.</exception>
5520 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5521 <paramref name="continuationFunction"/> argument is null.</exception>
5522 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5523 <paramref name="tasks"/> array contains a null value.</exception>
5524 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5525 <paramref name="tasks"/> array is empty.</exception>
5526 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5527 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5528 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5529 has already been disposed.
5530 </exception>
5531 </member>
5532 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAll``1(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0}[],`0},System.Threading.Tasks.TaskContinuationOptions)">
5533 <summary>
5534 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5535 that will be started upon the completion of a set of provided Tasks.
5536 </summary>
5537 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
5538 <param name="tasks">The array of tasks from which to continue.</param>
5539 <param name="continuationFunction">The function delegate to execute when all tasks in the
5540 <paramref name="tasks"/> array have completed.</param>
5541 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
5542 TaskContinuationOptions</see> value that controls the behavior of
5543 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5544 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5545 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5546 <paramref name="tasks"/> array is null.</exception>
5547 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5548 <paramref name="continuationFunction"/> argument is null.</exception>
5549 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5550 <paramref name="tasks"/> array contains a null value.</exception>
5551 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5552 <paramref name="tasks"/> array is empty.</exception>
5553 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5554 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
5555 value.</exception>
5556 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5557 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5558 <remarks>
5559 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
5560 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
5561 will be executed, are illegal with ContinueWhenAll.
5562 </remarks>
5563 </member>
5564 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAll``1(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0}[],`0},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
5565 <summary>
5566 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5567 that will be started upon the completion of a set of provided Tasks.
5568 </summary>
5569 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
5570 <param name="tasks">The array of tasks from which to continue.</param>
5571 <param name="continuationFunction">The function delegate to execute when all tasks in the
5572 <paramref name="tasks"/> array have completed.</param>
5573 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5574 that will be assigned to the new continuation task.</param>
5575 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
5576 TaskContinuationOptions</see> value that controls the behavior of
5577 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5578 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
5579 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
5580 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5581 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5582 <paramref name="tasks"/> array is null.</exception>
5583 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5584 <paramref name="continuationFunction"/> argument is null.</exception>
5585 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5586 <paramref name="scheduler"/> argument is null.</exception>
5587 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5588 <paramref name="tasks"/> array contains a null value.</exception>
5589 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5590 <paramref name="tasks"/> array is empty.</exception>
5591 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5592 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
5593 value.</exception>
5594 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5595 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5596 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5597 has already been disposed.
5598 </exception>
5599 <remarks>
5600 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
5601 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
5602 will be executed, are illegal with ContinueWhenAll.
5603 </remarks>
5604 </member>
5605 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAny(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task,`0})">
5606 <summary>
5607 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5608 that will be started upon the completion of any Task in the provided set.
5609 </summary>
5610 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
5611 <param name="continuationFunction">The function delegate to execute when one task in the <paramref
5612 name="tasks"/> array completes.</param>
5613 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</returns>
5614 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5615 <paramref name="tasks"/> array is null.</exception>
5616 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5617 <paramref name="continuationFunction"/> argument is null.</exception>
5618 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5619 <paramref name="tasks"/> array contains a null value.</exception>
5620 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5621 <paramref name="tasks"/> array is empty.</exception>
5622 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5623 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5624 </member>
5625 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAny(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task,`0},System.Threading.CancellationToken)">
5626 <summary>
5627 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5628 that will be started upon the completion of any Task in the provided set.
5629 </summary>
5630 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
5631 <param name="continuationFunction">The function delegate to execute when one task in the <paramref name="tasks"/> array completes.</param>
5632 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5633 that will be assigned to the new continuation task.</param>
5634 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</returns>
5635 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5636 <paramref name="tasks"/> array is null.</exception>
5637 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5638 <paramref name="continuationFunction"/> argument is null.</exception>
5639 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5640 <paramref name="tasks"/> array contains a null value.</exception>
5641 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5642 <paramref name="tasks"/> array is empty.</exception>
5643 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5644 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5645 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5646 has already been disposed.
5647 </exception>
5648 </member>
5649 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAny(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task,`0},System.Threading.Tasks.TaskContinuationOptions)">
5650 <summary>
5651 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5652 that will be started upon the completion of any Task in the provided set.
5653 </summary>
5654 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
5655 <param name="continuationFunction">The function delegate to execute when one task in the <paramref name="tasks"/> array completes.</param>
5656 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
5657 TaskContinuationOptions</see> value that controls the behavior of
5658 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5659 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</returns>
5660 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5661 <paramref name="tasks"/> array is null.</exception>
5662 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5663 <paramref name="continuationFunction"/> argument is null.</exception>
5664 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5665 <paramref name="tasks"/> array contains a null value.</exception>
5666 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5667 <paramref name="tasks"/> array is empty.</exception>
5668 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5669 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
5670 value.</exception>
5671 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5672 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5673 <remarks>
5674 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
5675 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
5676 will be executed, are illegal with ContinueWhenAny.
5677 </remarks>
5678 </member>
5679 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAny(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task,`0},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
5680 <summary>
5681 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5682 that will be started upon the completion of any Task in the provided set.
5683 </summary>
5684 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
5685 <param name="continuationFunction">The function delegate to execute when one task in the <paramref name="tasks"/> array completes.</param>
5686 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5687 that will be assigned to the new continuation task.</param>
5688 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
5689 TaskContinuationOptions</see> value that controls the behavior of
5690 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5691 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
5692 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
5693 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</returns>
5694 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5695 <paramref name="tasks"/> array is null.</exception>
5696 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5697 <paramref name="continuationFunction"/> argument is null.</exception>
5698 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5699 <paramref name="scheduler"/> argument is null.</exception>
5700 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5701 <paramref name="tasks"/> array contains a null value.</exception>
5702 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5703 <paramref name="tasks"/> array is empty.</exception>
5704 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5705 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
5706 value.</exception>
5707 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5708 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5709 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5710 has already been disposed.
5711 </exception>
5712 <remarks>
5713 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
5714 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
5715 will be executed, are illegal with ContinueWhenAny.
5716 </remarks>
5717 </member>
5718 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAny``1(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0},`0})">
5719 <summary>
5720 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5721 that will be started upon the completion of any Task in the provided set.
5722 </summary>
5723 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
5724 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
5725 <param name="continuationFunction">The function delegate to execute when one task in the
5726 <paramref name="tasks"/> array completes.</param>
5727 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5728 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5729 <paramref name="tasks"/> array is null.</exception>
5730 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5731 <paramref name="continuationFunction"/> argument is null.</exception>
5732 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5733 <paramref name="tasks"/> array contains a null value.</exception>
5734 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5735 <paramref name="tasks"/> array is empty.</exception>
5736 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5737 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5738 </member>
5739 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAny``1(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0},`0},System.Threading.CancellationToken)">
5740 <summary>
5741 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5742 that will be started upon the completion of any Task in the provided set.
5743 </summary>
5744 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
5745 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
5746 <param name="continuationFunction">The function delegate to execute when one task in the
5747 <paramref name="tasks"/> array completes.</param>
5748 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5749 that will be assigned to the new continuation task.</param>
5750 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5751 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5752 <paramref name="tasks"/> array is null.</exception>
5753 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5754 <paramref name="continuationFunction"/> argument is null.</exception>
5755 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5756 <paramref name="tasks"/> array contains a null value.</exception>
5757 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5758 <paramref name="tasks"/> array is empty.</exception>
5759 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5760 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5761 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5762 has already been disposed.
5763 </exception>
5764 </member>
5765 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAny``1(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0},`0},System.Threading.Tasks.TaskContinuationOptions)">
5766 <summary>
5767 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5768 that will be started upon the completion of any Task in the provided set.
5769 </summary>
5770 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
5771 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
5772 <param name="continuationFunction">The function delegate to execute when one task in the
5773 <paramref name="tasks"/> array completes.</param>
5774 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
5775 TaskContinuationOptions</see> value that controls the behavior of
5776 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5777 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5778 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5779 <paramref name="tasks"/> array is null.</exception>
5780 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5781 <paramref name="continuationFunction"/> argument is null.</exception>
5782 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5783 <paramref name="tasks"/> array contains a null value.</exception>
5784 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5785 <paramref name="tasks"/> array is empty.</exception>
5786 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5787 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
5788 value.</exception>
5789 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5790 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5791 <remarks>
5792 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
5793 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
5794 will be executed, are illegal with ContinueWhenAny.
5795 </remarks>
5796 </member>
5797 <member name="M:System.Threading.Tasks.TaskFactory`1.ContinueWhenAny``1(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0},`0},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
5798 <summary>
5799 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
5800 that will be started upon the completion of any Task in the provided set.
5801 </summary>
5802 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
5803 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
5804 <param name="continuationFunction">The function delegate to execute when one task in the
5805 <paramref name="tasks"/> array completes.</param>
5806 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5807 that will be assigned to the new continuation task.</param>
5808 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
5809 TaskContinuationOptions</see> value that controls the behavior of
5810 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
5811 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
5812 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
5813 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
5814 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5815 <paramref name="tasks"/> array is null.</exception>
5816 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5817 <paramref name="continuationFunction"/> argument is null.</exception>
5818 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
5819 <paramref name="scheduler"/> argument is null.</exception>
5820 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5821 <paramref name="tasks"/> array contains a null value.</exception>
5822 <exception cref="T:System.ArgumentException">The exception that is thrown when the
5823 <paramref name="tasks"/> array is empty.</exception>
5824 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
5825 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
5826 value.</exception>
5827 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
5828 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
5829 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
5830 has already been disposed.
5831 </exception>
5832 <remarks>
5833 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
5834 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
5835 will be executed, are illegal with ContinueWhenAny.
5836 </remarks>
5837 </member>
5838 <member name="P:System.Threading.Tasks.TaskFactory`1.CancellationToken">
5839 <summary>
5840 Gets the default <see cref="T:System.Threading.CancellationToken">CancellationToken</see> of this
5841 TaskFactory.
5842 </summary>
5843 <remarks>
5844 This property returns the default <see cref="P:System.Threading.Tasks.TaskFactory`1.CancellationToken"/> that will be assigned to all
5845 tasks created by this factory unless another CancellationToken value is explicitly specified
5846 during the call to the factory methods.
5847 </remarks>
5848 </member>
5849 <member name="P:System.Threading.Tasks.TaskFactory`1.Scheduler">
5850 <summary>
5851 Gets the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> of this
5852 TaskFactory{TResult}.
5853 </summary>
5854 <remarks>
5855 This property returns the default scheduler for this factory. It will be used to schedule all
5856 tasks unless another scheduler is explicitly specified during calls to this factory's methods.
5857 If null, <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>
5858 will be used.
5859 </remarks>
5860 </member>
5861 <member name="P:System.Threading.Tasks.TaskFactory`1.CreationOptions">
5862 <summary>
5863 Gets the <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions
5864 </see> value of this TaskFactory{TResult}.
5865 </summary>
5866 <remarks>
5867 This property returns the default creation options for this factory. They will be used to create all
5868 tasks unless other options are explicitly specified during calls to this factory's methods.
5869 </remarks>
5870 </member>
5871 <member name="P:System.Threading.Tasks.TaskFactory`1.ContinuationOptions">
5872 <summary>
5873 Gets the <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskContinuationOptions
5874 </see> value of this TaskFactory{TResult}.
5875 </summary>
5876 <remarks>
5877 This property returns the default continuation options for this factory. They will be used to create
5878 all continuation tasks unless other options are explicitly specified during calls to this factory's methods.
5879 </remarks>
5880 </member>
5881 <member name="T:System.Threading.Tasks.TaskStatus">
5882 <summary>
5883 Represents the current stage in the lifecycle of a <see cref="T:System.Threading.Tasks.Task"/>.
5884 </summary>
5885 </member>
5886 <member name="F:System.Threading.Tasks.TaskStatus.Created">
5887 <summary>
5888 The task has been initialized but has not yet been scheduled.
5889 </summary>
5890 </member>
5891 <member name="F:System.Threading.Tasks.TaskStatus.WaitingForActivation">
5892 <summary>
5893 The task is waiting to be activated and scheduled internally by the .NET Framework infrastructure.
5894 </summary>
5895 </member>
5896 <member name="F:System.Threading.Tasks.TaskStatus.WaitingToRun">
5897 <summary>
5898 The task has been scheduled for execution but has not yet begun executing.
5899 </summary>
5900 </member>
5901 <member name="F:System.Threading.Tasks.TaskStatus.Running">
5902 <summary>
5903 The task is running but has not yet completed.
5904 </summary>
5905 </member>
5906 <member name="F:System.Threading.Tasks.TaskStatus.WaitingForChildrenToComplete">
5907 <summary>
5908 The task has finished executing and is implicitly waiting for
5909 attached child tasks to complete.
5910 </summary>
5911 </member>
5912 <member name="F:System.Threading.Tasks.TaskStatus.RanToCompletion">
5913 <summary>
5914 The task completed execution successfully.
5915 </summary>
5916 </member>
5917 <member name="F:System.Threading.Tasks.TaskStatus.Canceled">
5918 <summary>
5919 The task acknowledged cancellation by throwing an OperationCanceledException2 with its own CancellationToken
5920 while the token was in signaled state, or the task's CancellationToken was already signaled before the
5921 task started executing.
5922 </summary>
5923 </member>
5924 <member name="F:System.Threading.Tasks.TaskStatus.Faulted">
5925 <summary>
5926 The task completed due to an unhandled exception.
5927 </summary>
5928 </member>
5929 <member name="T:System.Threading.Tasks.TaskCreationOptions">
5930 <summary>
5931 Specifies flags that control optional behavior for the creation and execution of tasks.
5932 </summary>
5933 </member>
5934 <member name="F:System.Threading.Tasks.TaskCreationOptions.None">
5935 <summary>
5936 Specifies that the default behavior should be used.
5937 </summary>
5938 </member>
5939 <member name="F:System.Threading.Tasks.TaskCreationOptions.PreferFairness">
5940 <summary>
5941 A hint to a <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> to schedule a
5942 task in as fair a manner as possible, meaning that tasks scheduled sooner will be more likely to
5943 be run sooner, and tasks scheduled later will be more likely to be run later.
5944 </summary>
5945 </member>
5946 <member name="F:System.Threading.Tasks.TaskCreationOptions.LongRunning">
5947 <summary>
5948 Specifies that a task will be a long-running, course-grained operation. It provides a hint to the
5949 <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> that oversubscription may be
5950 warranted.
5951 </summary>
5952 </member>
5953 <member name="F:System.Threading.Tasks.TaskCreationOptions.AttachedToParent">
5954 <summary>
5955 Specifies that a task is attached to a parent in the task hierarchy.
5956 </summary>
5957 </member>
5958 <member name="T:System.Threading.Tasks.InternalTaskOptions">
5959 <summary>
5960 Task creation flags which are only used internally.
5961 </summary>
5962 </member>
5963 <member name="F:System.Threading.Tasks.InternalTaskOptions.None">
5964 <summary> Specifies "No internal task options" </summary>
5965 </member>
5966 <member name="F:System.Threading.Tasks.InternalTaskOptions.InternalOptionsMask">
5967 <summary>Used to filter out internal vs. public task creation options.</summary>
5968 </member>
5969 <member name="F:System.Threading.Tasks.InternalTaskOptions.QueuedByRuntime">
5970 <summary>Specifies that the task will be queued by the runtime before handing it over to the user.
5971 This flag will be used to skip the cancellationtoken registration step, which is only meant for unstarted tasks.</summary>
5972 </member>
5973 <member name="T:System.Threading.Tasks.TaskContinuationOptions">
5974 <summary>
5975 Specifies flags that control optional behavior for the creation and execution of continuation tasks.
5976 </summary>
5977 </member>
5978 <member name="F:System.Threading.Tasks.TaskContinuationOptions.None">
5979 <summary>
5980 Default = "Continue on any, no task options, run asynchronously"
5981 Specifies that the default behavior should be used. Continuations, by default, will
5982 be scheduled when the antecedent task completes, regardless of the task's final <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see>.
5983 </summary>
5984 </member>
5985 <member name="F:System.Threading.Tasks.TaskContinuationOptions.PreferFairness">
5986 <summary>
5987 A hint to a <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> to schedule a
5988 task in as fair a manner as possible, meaning that tasks scheduled sooner will be more likely to
5989 be run sooner, and tasks scheduled later will be more likely to be run later.
5990 </summary>
5991 </member>
5992 <member name="F:System.Threading.Tasks.TaskContinuationOptions.LongRunning">
5993 <summary>
5994 Specifies that a task will be a long-running, course-grained operation. It provides
5995 a hint to the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> that
5996 oversubscription may be warranted.
5997 </summary>
5998 </member>
5999 <member name="F:System.Threading.Tasks.TaskContinuationOptions.AttachedToParent">
6000 <summary>
6001 Specifies that a task is attached to a parent in the task hierarchy.
6002 </summary>
6003 </member>
6004 <member name="F:System.Threading.Tasks.TaskContinuationOptions.NotOnRanToCompletion">
6005 <summary>
6006 Specifies that the continuation task should not be scheduled if its antecedent ran to completion.
6007 This option is not valid for multi-task continuations.
6008 </summary>
6009 </member>
6010 <member name="F:System.Threading.Tasks.TaskContinuationOptions.NotOnFaulted">
6011 <summary>
6012 Specifies that the continuation task should not be scheduled if its antecedent threw an unhandled
6013 exception. This option is not valid for multi-task continuations.
6014 </summary>
6015 </member>
6016 <member name="F:System.Threading.Tasks.TaskContinuationOptions.NotOnCanceled">
6017 <summary>
6018 Specifies that the continuation task should not be scheduled if its antecedent was canceled. This
6019 option is not valid for multi-task continuations.
6020 </summary>
6021 </member>
6022 <member name="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnRanToCompletion">
6023 <summary>
6024 Specifies that the continuation task should be scheduled only if its antecedent ran to
6025 completion. This option is not valid for multi-task continuations.
6026 </summary>
6027 </member>
6028 <member name="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnFaulted">
6029 <summary>
6030 Specifies that the continuation task should be scheduled only if its antecedent threw an
6031 unhandled exception. This option is not valid for multi-task continuations.
6032 </summary>
6033 </member>
6034 <member name="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">
6035 <summary>
6036 Specifies that the continuation task should be scheduled only if its antecedent was canceled.
6037 This option is not valid for multi-task continuations.
6038 </summary>
6039 </member>
6040 <member name="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">
6041 <summary>
6042 Specifies that the continuation task should be executed synchronously. With this option
6043 specified, the continuation will be run on the same thread that causes the antecedent task to
6044 transition into its final state. If the antecedent is already complete when the continuation is
6045 created, the continuation will run on the thread creating the continuation. Only very
6046 short-running continuations should be executed synchronously.
6047 </summary>
6048 </member>
6049 <member name="T:System.Threading.Tasks.TaskCanceledException">
6050 <summary>
6051 Represents an exception used to communicate task cancellation.
6052 </summary>
6053 </member>
6054 <member name="M:System.Threading.Tasks.TaskCanceledException.#ctor">
6055 <summary>
6056 Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskCanceledException"/> class.
6057 </summary>
6058 </member>
6059 <member name="M:System.Threading.Tasks.TaskCanceledException.#ctor(System.String)">
6060 <summary>
6061 Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskCanceledException"/>
6062 class with a specified error message.
6063 </summary>
6064 <param name="message">The error message that explains the reason for the exception.</param>
6065 </member>
6066 <member name="M:System.Threading.Tasks.TaskCanceledException.#ctor(System.String,System.Exception)">
6067 <summary>
6068 Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskCanceledException"/>
6069 class with a specified error message and a reference to the inner exception that is the cause of
6070 this exception.
6071 </summary>
6072 <param name="message">The error message that explains the reason for the exception.</param>
6073 <param name="innerException">The exception that is the cause of the current exception.</param>
6074 </member>
6075 <member name="M:System.Threading.Tasks.TaskCanceledException.#ctor(System.Threading.Tasks.Task)">
6076 <summary>
6077 Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskCanceledException"/> class
6078 with a reference to the <see cref="T:System.Threading.Tasks.Task"/> that has been canceled.
6079 </summary>
6080 <param name="task">A task that has been canceled.</param>
6081 </member>
6082 <member name="P:System.Threading.Tasks.TaskCanceledException.Task">
6083 <summary>
6084 Gets the task associated with this exception.
6085 </summary>
6086 <remarks>
6087 It is permissible for no Task to be associated with a
6088 <see cref="T:System.Threading.Tasks.TaskCanceledException"/>, in which case
6089 this property will return null.
6090 </remarks>
6091 </member>
6092 <member name="T:System.Threading.Tasks.TaskCompletionSource`1">
6093 <summary>
6094 Represents the producer side of a <see cref="T:System.Threading.Tasks.Task{TResult}"/> unbound to a
6095 delegate, providing access to the consumer side through the <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task"/> property.
6096 </summary>
6097 <remarks>
6098 <para>
6099 It is often the case that a <see cref="T:System.Threading.Tasks.Task{TResult}"/> is desired to
6100 represent another asynchronous operation.
6101 <see cref="T:System.Threading.Tasks.TaskCompletionSource`1">TaskCompletionSource</see> is provided for this purpose. It enables
6102 the creation of a task that can be handed out to consumers, and those consumers can use the members
6103 of the task as they would any other. However, unlike most tasks, the state of a task created by a
6104 TaskCompletionSource is controlled explicitly by the methods on TaskCompletionSource. This enables the
6105 completion of the external asynchronous operation to be propagated to the underlying Task. The
6106 separation also ensures that consumers are not able to transition the state without access to the
6107 corresponding TaskCompletionSource.
6108 </para>
6109 <para>
6110 All members of <see cref="T:System.Threading.Tasks.TaskCompletionSource`1"/> are thread-safe
6111 and may be used from multiple threads concurrently.
6112 </para>
6113 </remarks>
6114 <typeparam name="TResult">The type of the result value assocatied with this <see cref="T:System.Threading.Tasks.TaskCompletionSource`1"/>.</typeparam>
6115 </member>
6116 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.#ctor">
6117 <summary>
6118 Creates a <see cref="T:System.Threading.Tasks.TaskCompletionSource`1"/>.
6119 </summary>
6120 </member>
6121 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.#ctor(System.Threading.Tasks.TaskCreationOptions)">
6122 <summary>
6123 Creates a <see cref="T:System.Threading.Tasks.TaskCompletionSource`1"/>
6124 with the specified options.
6125 </summary>
6126 <remarks>
6127 The <see cref="T:System.Threading.Tasks.Task{TResult}"/> created
6128 by this instance and accessible through its <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task"/> property
6129 will be instantiated using the specified <paramref name="creationOptions"/>.
6130 </remarks>
6131 <param name="creationOptions">The options to use when creating the underlying
6132 <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6133 <exception cref="T:ArgumentOutOfRangeException">
6134 The <paramref name="creationOptions"/> represent options invalid for use
6135 with a <see cref="T:System.Threading.Tasks.TaskCompletionSource`1"/>.
6136 </exception>
6137 </member>
6138 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.#ctor(System.Object)">
6139 <summary>
6140 Creates a <see cref="T:System.Threading.Tasks.TaskCompletionSource`1"/>
6141 with the specified state.
6142 </summary>
6143 <param name="state">The state to use as the underlying
6144 <see cref="T:System.Threading.Tasks.Task{TResult}"/>'s AsyncState.</param>
6145 </member>
6146 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.#ctor(System.Object,System.Threading.Tasks.TaskCreationOptions)">
6147 <summary>
6148 Creates a <see cref="T:System.Threading.Tasks.TaskCompletionSource`1"/> with
6149 the specified state and options.
6150 </summary>
6151 <param name="creationOptions">The options to use when creating the underlying
6152 <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6153 <param name="state">The state to use as the underlying
6154 <see cref="T:System.Threading.Tasks.Task{TResult}"/>'s AsyncState.</param>
6155 <exception cref="T:ArgumentOutOfRangeException">
6156 The <paramref name="creationOptions"/> represent options invalid for use
6157 with a <see cref="T:System.Threading.Tasks.TaskCompletionSource`1"/>.
6158 </exception>
6159 </member>
6160 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.TrySetException(System.Exception)">
6161 <summary>
6162 Attempts to transition the underlying
6163 <see cref="T:System.Threading.Tasks.Task{TResult}"/> into the
6164 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>
6165 state.
6166 </summary>
6167 <param name="exception">The exception to bind to this <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6168 <returns>True if the operation was successful; otherwise, false.</returns>
6169 <remarks>This operation will return false if the
6170 <see cref="T:System.Threading.Tasks.Task{TResult}"/> is already in one
6171 of the three final states:
6172 <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
6173 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
6174 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
6175 </remarks>
6176 <exception cref="T:System.ArgumentNullException">The <paramref name="exception"/> argument is null.</exception>
6177 <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task"/> was disposed.</exception>
6178 </member>
6179 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.TrySetException(System.Collections.Generic.IEnumerable{System.Exception})">
6180 <summary>
6181 Attempts to transition the underlying
6182 <see cref="T:System.Threading.Tasks.Task{TResult}"/> into the
6183 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>
6184 state.
6185 </summary>
6186 <param name="exceptions">The collection of exceptions to bind to this <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6187 <returns>True if the operation was successful; otherwise, false.</returns>
6188 <remarks>This operation will return false if the
6189 <see cref="T:System.Threading.Tasks.Task{TResult}"/> is already in one
6190 of the three final states:
6191 <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
6192 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
6193 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
6194 </remarks>
6195 <exception cref="T:System.ArgumentNullException">The <paramref name="exceptions"/> argument is null.</exception>
6196 <exception cref="T:System.ArgumentException">There are one or more null elements in <paramref name="exceptions"/>.</exception>
6197 <exception cref="T:System.ArgumentException">The <paramref name="exceptions"/> collection is empty.</exception>
6198 <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task"/> was disposed.</exception>
6199 </member>
6200 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.SetException(System.Exception)">
6201 <summary>
6202 Transitions the underlying
6203 <see cref="T:System.Threading.Tasks.Task{TResult}"/> into the
6204 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>
6205 state.
6206 </summary>
6207 <param name="exception">The exception to bind to this <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6208 <exception cref="T:System.ArgumentNullException">The <paramref name="exception"/> argument is null.</exception>
6209 <exception cref="T:System.InvalidOperationException">
6210 The underlying <see cref="T:System.Threading.Tasks.Task{TResult}"/> is already in one
6211 of the three final states:
6212 <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
6213 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
6214 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
6215 </exception>
6216 <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task"/> was disposed.</exception>
6217 </member>
6218 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.SetException(System.Collections.Generic.IEnumerable{System.Exception})">
6219 <summary>
6220 Transitions the underlying
6221 <see cref="T:System.Threading.Tasks.Task{TResult}"/> into the
6222 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>
6223 state.
6224 </summary>
6225 <param name="exceptions">The collection of exceptions to bind to this <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6226 <exception cref="T:System.ArgumentNullException">The <paramref name="exceptions"/> argument is null.</exception>
6227 <exception cref="T:System.ArgumentException">There are one or more null elements in <paramref name="exceptions"/>.</exception>
6228 <exception cref="T:System.InvalidOperationException">
6229 The underlying <see cref="T:System.Threading.Tasks.Task{TResult}"/> is already in one
6230 of the three final states:
6231 <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
6232 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
6233 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
6234 </exception>
6235 <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task"/> was disposed.</exception>
6236 </member>
6237 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(`0)">
6238 <summary>
6239 Attempts to transition the underlying
6240 <see cref="T:System.Threading.Tasks.Task{TResult}"/> into the
6241 <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>
6242 state.
6243 </summary>
6244 <param name="result">The result value to bind to this <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6245 <returns>True if the operation was successful; otherwise, false.</returns>
6246 <remarks>This operation will return false if the
6247 <see cref="T:System.Threading.Tasks.Task{TResult}"/> is already in one
6248 of the three final states:
6249 <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
6250 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
6251 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
6252 </remarks>
6253 <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task"/> was disposed.</exception>
6254 </member>
6255 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.SetResult(`0)">
6256 <summary>
6257 Transitions the underlying
6258 <see cref="T:System.Threading.Tasks.Task{TResult}"/> into the
6259 <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>
6260 state.
6261 </summary>
6262 <param name="result">The result value to bind to this <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6263 <exception cref="T:System.InvalidOperationException">
6264 The underlying <see cref="T:System.Threading.Tasks.Task{TResult}"/> is already in one
6265 of the three final states:
6266 <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
6267 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
6268 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
6269 </exception>
6270 <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task"/> was disposed.</exception>
6271 </member>
6272 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.SetCanceled">
6273 <summary>
6274 Transitions the underlying
6275 <see cref="T:System.Threading.Tasks.Task{TResult}"/> into the
6276 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>
6277 state.
6278 </summary>
6279 <exception cref="T:System.InvalidOperationException">
6280 The underlying <see cref="T:System.Threading.Tasks.Task{TResult}"/> is already in one
6281 of the three final states:
6282 <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
6283 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
6284 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
6285 </exception>
6286 <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task"/> was disposed.</exception>
6287 </member>
6288 <member name="M:System.Threading.Tasks.TaskCompletionSource`1.TrySetCanceled">
6289 <summary>
6290 Attempts to transition the underlying
6291 <see cref="T:System.Threading.Tasks.Task{TResult}"/> into the
6292 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>
6293 state.
6294 </summary>
6295 <returns>True if the operation was successful; otherwise, false.</returns>
6296 <remarks>This operation will return false if the
6297 <see cref="T:System.Threading.Tasks.Task{TResult}"/> is already in one
6298 of the three final states:
6299 <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion">RanToCompletion</see>,
6300 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted">Faulted</see>, or
6301 <see cref="F:System.Threading.Tasks.TaskStatus.Canceled">Canceled</see>.
6302 </remarks>
6303 <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task"/> was disposed.</exception>
6304 </member>
6305 <member name="P:System.Threading.Tasks.TaskCompletionSource`1.Task">
6306 <summary>
6307 Gets the <see cref="T:System.Threading.Tasks.Task{TResult}"/> created
6308 by this <see cref="T:System.Threading.Tasks.TaskCompletionSource`1"/>.
6309 </summary>
6310 <remarks>
6311 This property enables a consumer access to the <see cref="T:System.Threading.Tasks.Task{TResult}"/> that is controlled by this instance.
6312 The <see cref="M:System.Threading.Tasks.TaskCompletionSource`1.SetResult(`0)"/>, <see cref="M:System.Threading.Tasks.TaskCompletionSource`1.SetException(System.Exception)"/>,
6313 <see cref="M:System.Threading.Tasks.TaskCompletionSource`1.SetException(System.Collections.Generic.IEnumerable{System.Exception})"/>, and <see cref="M:System.Threading.Tasks.TaskCompletionSource`1.SetCanceled"/>
6314 methods (and their "Try" variants) on this instance all result in the relevant state
6315 transitions on this underlying Task.
6316 </remarks>
6317 </member>
6318 <member name="T:System.Threading.Tasks.TaskExceptionHolder">
6319 <summary>
6320 An exception holder manages a list of exceptions for one particular task.
6321 It offers the ability to aggregate, but more importantly, also offers intrinsic
6322 support for propagating unhandled exceptions that are never observed. It does
6323 this by aggregating and throwing if the holder is ever GC'd without the holder's
6324 contents ever having been requested (e.g. by a Task.Wait, Task.get_Exception, etc).
6325 </summary>
6326 </member>
6327 <member name="M:System.Threading.Tasks.TaskExceptionHolder.#ctor(System.Threading.Tasks.Task)">
6328 <summary>
6329 Creates a new holder; it will be registered for finalization.
6330 </summary>
6331 <param name="task">The task this holder belongs to.</param>
6332 </member>
6333 <member name="M:System.Threading.Tasks.TaskExceptionHolder.Finalize">
6334 <summary>
6335 A finalizer that repropagates unhandled exceptions.
6336 </summary>
6337 </member>
6338 <member name="M:System.Threading.Tasks.TaskExceptionHolder.Add(System.Object)">
6339 <summary>
6340 Add an exception to the internal list. This will ensure the holder is
6341 in the proper state (handled/unhandled) depending on the list's contents.
6342 </summary>
6343 <param name="exceptionObject">An exception object (either an Exception or an
6344 IEnumerable{Exception}) to add to the list.</param>
6345 </member>
6346 <member name="M:System.Threading.Tasks.TaskExceptionHolder.MarkAsUnhandled">
6347 <summary>
6348 A private helper method that ensures the holder is considered
6349 unhandled, i.e. it is registered for finalization.
6350 </summary>
6351 </member>
6352 <member name="M:System.Threading.Tasks.TaskExceptionHolder.MarkAsHandled(System.Boolean)">
6353 <summary>
6354 A private helper method that ensures the holder is considered
6355 handled, i.e. it is not registered for finalization.
6356 </summary>
6357 <param name="calledFromFinalizer">Whether this is called from the finalizer thread.</param>
6358 </member>
6359 <member name="M:System.Threading.Tasks.TaskExceptionHolder.CreateExceptionObject(System.Boolean,System.Exception)">
6360 <summary>
6361 Allocates a new aggregate exception and adds the contents of the list to
6362 it. By calling this method, the holder assumes exceptions to have been
6363 "observed", such that the finalization check will be subsequently skipped.
6364 </summary>
6365 <param name="calledFromFinalizer">Whether this is being called from a finalizer.</param>
6366 <param name="includeThisException">An extra exception to be included (optionally).</param>
6367 <returns>The aggregate exception to throw.</returns>
6368 </member>
6369 <member name="T:System.Threading.Tasks.TaskExtensions">
6370 <summary>
6371 Provides a set of static (Shared in Visual Basic) methods for working with specific kinds of
6372 <see cref="T:System.Threading.Tasks.Task"/> instances.
6373 </summary>
6374 </member>
6375 <member name="M:System.Threading.Tasks.TaskExtensions.Unwrap(System.Threading.Tasks.Task{System.Threading.Tasks.Task})">
6376 <summary>
6377 Creates a proxy <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the
6378 asynchronous operation of a Task{Task}.
6379 </summary>
6380 <remarks>
6381 It is often useful to be able to return a Task from a <see cref="T:System.Threading.Tasks.Task`1">
6382 Task{TResult}</see>, where the inner Task represents work done as part of the outer Task{TResult}. However,
6383 doing so results in a Task{Task}, which, if not dealt with carefully, could produce unexpected behavior. Unwrap
6384 solves this problem by creating a proxy Task that represents the entire asynchronous operation of such a Task{Task}.
6385 </remarks>
6386 <param name="task">The Task{Task} to unwrap.</param>
6387 <exception cref="T:System.ArgumentNullException">The exception that is thrown if the
6388 <paramref name="task"/> argument is null.</exception>
6389 <returns>A Task that represents the asynchronous operation of the provided Task{Task}.</returns>
6390 </member>
6391 <member name="M:System.Threading.Tasks.TaskExtensions.Unwrap``1(System.Threading.Tasks.Task{System.Threading.Tasks.Task{``0}})">
6392 <summary>
6393 Creates a proxy <see cref="T:System.Threading.Tasks.Task`1">Task{TResult}</see> that represents the
6394 asynchronous operation of a Task{Task{TResult}}.
6395 </summary>
6396 <remarks>
6397 It is often useful to be able to return a Task{TResult} from a Task{TResult}, where the inner Task{TResult}
6398 represents work done as part of the outer Task{TResult}. However, doing so results in a Task{Task{TResult}},
6399 which, if not dealt with carefully, could produce unexpected behavior. Unwrap solves this problem by
6400 creating a proxy Task{TResult} that represents the entire asynchronous operation of such a Task{Task{TResult}}.
6401 </remarks>
6402 <param name="task">The Task{Task{TResult}} to unwrap.</param>
6403 <exception cref="T:System.ArgumentNullException">The exception that is thrown if the
6404 <paramref name="task"/> argument is null.</exception>
6405 <returns>A Task{TResult} that represents the asynchronous operation of the provided Task{Task{TResult}}.</returns> /// <summary>Unwraps a Task that returns another Task.</summary>
6406 </member>
6407 <member name="T:System.Threading.Tasks.TaskFactory">
6408 <summary>
6409 Provides support for creating and scheduling
6410 <see cref="T:System.Threading.Tasks.Task">Tasks</see>.
6411 </summary>
6412 <remarks>
6413 <para>
6414 There are many common patterns for which tasks are relevant. The <see cref="T:System.Threading.Tasks.TaskFactory"/>
6415 class encodes some of these patterns into methods that pick up default settings, which are
6416 configurable through its constructors.
6417 </para>
6418 <para>
6419 A default instance of <see cref="T:System.Threading.Tasks.TaskFactory"/> is available through the
6420 <see cref="P:System.Threading.Tasks.Task.Factory">Task.Factory</see> property.
6421 </para>
6422 </remarks>
6423 </member>
6424 <member name="M:System.Threading.Tasks.TaskFactory.#ctor">
6425 <summary>
6426 Initializes a <see cref="T:System.Threading.Tasks.TaskFactory"/> instance with the default configuration.
6427 </summary>
6428 <remarks>
6429 This constructor creates a <see cref="T:System.Threading.Tasks.TaskFactory"/> instance with a default configuration. The
6430 <see cref="T:System.Threading.Tasks.TaskCreationOptions"/> property is initialized to
6431 <see cref="F:System.Threading.Tasks.TaskCreationOptions.None">TaskCreationOptions.None</see>, the
6432 <see cref="T:System.Threading.Tasks.TaskContinuationOptions"/> property is initialized to <see cref="F:System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>,
6433 and the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> property is
6434 initialized to the current scheduler (see <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>).
6435 </remarks>
6436 </member>
6437 <member name="M:System.Threading.Tasks.TaskFactory.#ctor(System.Threading.CancellationToken)">
6438 <summary>
6439 Initializes a <see cref="T:System.Threading.Tasks.TaskFactory"/> instance with the specified configuration.
6440 </summary>
6441 <param name="cancellationToken">The default <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned
6442 to tasks created by this <see cref="T:System.Threading.Tasks.TaskFactory"/> unless another CancellationToken is explicitly specified
6443 while calling the factory methods.</param>
6444 <remarks>
6445 This constructor creates a <see cref="T:System.Threading.Tasks.TaskFactory"/> instance with a default configuration. The
6446 <see cref="T:System.Threading.Tasks.TaskCreationOptions"/> property is initialized to
6447 <see cref="F:System.Threading.Tasks.TaskCreationOptions.None">TaskCreationOptions.None</see>, the
6448 <see cref="T:System.Threading.Tasks.TaskContinuationOptions"/> property is initialized to <see cref="F:System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>,
6449 and the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> property is
6450 initialized to the current scheduler (see <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>).
6451 </remarks>
6452 </member>
6453 <member name="M:System.Threading.Tasks.TaskFactory.#ctor(System.Threading.Tasks.TaskScheduler)">
6454 <summary>
6455 Initializes a <see cref="T:System.Threading.Tasks.TaskFactory"/> instance with the specified configuration.
6456 </summary>
6457 <param name="scheduler">
6458 The <see cref="T:System.Threading.Tasks.TaskScheduler">
6459 TaskScheduler</see> to use to schedule any tasks created with this TaskFactory. A null value
6460 indicates that the current TaskScheduler should be used.
6461 </param>
6462 <remarks>
6463 With this constructor, the
6464 <see cref="T:System.Threading.Tasks.TaskCreationOptions"/> property is initialized to
6465 <see cref="F:System.Threading.Tasks.TaskCreationOptions.None">TaskCreationOptions.None</see>, the
6466 <see cref="T:System.Threading.Tasks.TaskContinuationOptions"/> property is initialized to <see cref="F:System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>,
6467 and the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> property is
6468 initialized to <paramref name="scheduler"/>, unless it's null, in which case the property is
6469 initialized to the current scheduler (see <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>).
6470 </remarks>
6471 </member>
6472 <member name="M:System.Threading.Tasks.TaskFactory.#ctor(System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskContinuationOptions)">
6473 <summary>
6474 Initializes a <see cref="T:System.Threading.Tasks.TaskFactory"/> instance with the specified configuration.
6475 </summary>
6476 <param name="creationOptions">
6477 The default <see cref="T:System.Threading.Tasks.TaskCreationOptions">
6478 TaskCreationOptions</see> to use when creating tasks with this TaskFactory.
6479 </param>
6480 <param name="continuationOptions">
6481 The default <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
6482 TaskContinuationOptions</see> to use when creating continuation tasks with this TaskFactory.
6483 </param>
6484 <exception cref="T:ArgumentOutOfRangeException">
6485 The exception that is thrown when the
6486 <paramref name="creationOptions"/> argument or the <paramref name="continuationOptions"/>
6487 argument specifies an invalid value.
6488 </exception>
6489 <remarks>
6490 With this constructor, the
6491 <see cref="T:System.Threading.Tasks.TaskCreationOptions"/> property is initialized to <paramref name="creationOptions"/>,
6492 the
6493 <see cref="T:System.Threading.Tasks.TaskContinuationOptions"/> property is initialized to <paramref name="continuationOptions"/>, and the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> property is initialized to the
6494 current scheduler (see <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>).
6495 </remarks>
6496 </member>
6497 <member name="M:System.Threading.Tasks.TaskFactory.#ctor(System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
6498 <summary>
6499 Initializes a <see cref="T:System.Threading.Tasks.TaskFactory"/> instance with the specified configuration.
6500 </summary>
6501 <param name="cancellationToken">The default <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned
6502 to tasks created by this <see cref="T:System.Threading.Tasks.TaskFactory"/> unless another CancellationToken is explicitly specified
6503 while calling the factory methods.</param>
6504 <param name="creationOptions">
6505 The default <see cref="T:System.Threading.Tasks.TaskCreationOptions">
6506 TaskCreationOptions</see> to use when creating tasks with this TaskFactory.
6507 </param>
6508 <param name="continuationOptions">
6509 The default <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
6510 TaskContinuationOptions</see> to use when creating continuation tasks with this TaskFactory.
6511 </param>
6512 <param name="scheduler">
6513 The default <see cref="T:System.Threading.Tasks.TaskScheduler">
6514 TaskScheduler</see> to use to schedule any Tasks created with this TaskFactory. A null value
6515 indicates that TaskScheduler.Current should be used.
6516 </param>
6517 <exception cref="T:ArgumentOutOfRangeException">
6518 The exception that is thrown when the
6519 <paramref name="creationOptions"/> argument or the <paramref name="continuationOptions"/>
6520 argumentspecifies an invalid value.
6521 </exception>
6522 <remarks>
6523 With this constructor, the
6524 <see cref="T:System.Threading.Tasks.TaskCreationOptions"/> property is initialized to <paramref name="creationOptions"/>,
6525 the
6526 <see cref="T:System.Threading.Tasks.TaskContinuationOptions"/> property is initialized to <paramref name="continuationOptions"/>, and the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> property is initialized to
6527 <paramref name="scheduler"/>, unless it's null, in which case the property is initialized to the
6528 current scheduler (see <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>).
6529 </remarks>
6530 </member>
6531 <member name="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action)">
6532 <summary>
6533 Creates and starts a <see cref="T:System.Threading.Tasks.Task">Task</see>.
6534 </summary>
6535 <param name="action">The action delegate to execute asynchronously.</param>
6536 <returns>The started <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
6537 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action"/>
6538 argument is null.</exception>
6539 <remarks>
6540 Calling StartNew is functionally equivalent to creating a Task using one of its constructors
6541 and then calling
6542 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution. However,
6543 unless creation and scheduling must be separated, StartNew is the recommended
6544 approach for both simplicity and performance.
6545 </remarks>
6546 </member>
6547 <member name="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action,System.Threading.CancellationToken)">
6548 <summary>
6549 Creates and starts a <see cref="T:System.Threading.Tasks.Task">Task</see>.
6550 </summary>
6551 <param name="action">The action delegate to execute asynchronously.</param>
6552 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned to the new task.</param>
6553 <returns>The started <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
6554 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action"/>
6555 argument is null.</exception>
6556 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
6557 has already been disposed.
6558 </exception>
6559 <remarks>
6560 Calling StartNew is functionally equivalent to creating a Task using one of its constructors
6561 and then calling
6562 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution. However,
6563 unless creation and scheduling must be separated, StartNew is the recommended
6564 approach for both simplicity and performance.
6565 </remarks>
6566 </member>
6567 <member name="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action,System.Threading.Tasks.TaskCreationOptions)">
6568 <summary>
6569 Creates and starts a <see cref="T:System.Threading.Tasks.Task">Task</see>.
6570 </summary>
6571 <param name="action">The action delegate to execute asynchronously.</param>
6572 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
6573 created
6574 <see cref="T:System.Threading.Tasks.Task">Task.</see></param>
6575 <returns>The started <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
6576 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action"/>
6577 argument is null.</exception>
6578 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
6579 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
6580 value.</exception>
6581 <remarks>
6582 Calling StartNew is functionally equivalent to creating a Task using one of its constructors and
6583 then calling
6584 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6585 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6586 for both simplicity and performance.
6587 </remarks>
6588 </member>
6589 <member name="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)">
6590 <summary>
6591 Creates and starts a <see cref="T:System.Threading.Tasks.Task">Task</see>.
6592 </summary>
6593 <param name="action">The action delegate to execute asynchronously.</param>
6594 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned to the new <see cref="T:System.Threading.Tasks.Task"/></param>
6595 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
6596 created
6597 <see cref="T:System.Threading.Tasks.Task">Task.</see></param>
6598 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
6599 that is used to schedule the created <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
6600 <returns>The started <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
6601 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action"/>
6602 argument is null.</exception>
6603 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="scheduler"/>
6604 argument is null.</exception>
6605 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
6606 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
6607 value.</exception>
6608 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
6609 has already been disposed.
6610 </exception>
6611 <remarks>
6612 Calling StartNew is functionally equivalent to creating a Task using one of its constructors and
6613 then calling
6614 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6615 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6616 for both simplicity and performance.
6617 </remarks>
6618 </member>
6619 <member name="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action{System.Object},System.Object)">
6620 <summary>
6621 Creates and starts a <see cref="T:System.Threading.Tasks.Task">Task</see>.
6622 </summary>
6623 <param name="action">The action delegate to execute asynchronously.</param>
6624 <param name="state">An object containing data to be used by the <paramref name="action"/>
6625 delegate.</param>
6626 <returns>The started <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
6627 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action"/>
6628 argument is null.</exception>
6629 <remarks>
6630 Calling StartNew is functionally equivalent to creating a Task using one of its constructors and
6631 then calling
6632 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6633 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6634 for both simplicity and performance.
6635 </remarks>
6636 </member>
6637 <member name="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action{System.Object},System.Object,System.Threading.CancellationToken)">
6638 <summary>
6639 Creates and starts a <see cref="T:System.Threading.Tasks.Task">Task</see>.
6640 </summary>
6641 <param name="action">The action delegate to execute asynchronously.</param>
6642 <param name="state">An object containing data to be used by the <paramref name="action"/>
6643 delegate.</param>
6644 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned to the new <see cref="T:System.Threading.Tasks.Task"/></param>
6645 <returns>The started <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
6646 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action"/>
6647 argument is null.</exception>
6648 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
6649 has already been disposed.
6650 </exception>
6651 <remarks>
6652 Calling StartNew is functionally equivalent to creating a Task using one of its constructors and
6653 then calling
6654 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6655 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6656 for both simplicity and performance.
6657 </remarks>
6658 </member>
6659 <member name="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action{System.Object},System.Object,System.Threading.Tasks.TaskCreationOptions)">
6660 <summary>
6661 Creates and starts a <see cref="T:System.Threading.Tasks.Task">Task</see>.
6662 </summary>
6663 <param name="action">The action delegate to execute asynchronously.</param>
6664 <param name="state">An object containing data to be used by the <paramref name="action"/>
6665 delegate.</param>
6666 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
6667 created
6668 <see cref="T:System.Threading.Tasks.Task">Task.</see></param>
6669 <returns>The started <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
6670 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action"/>
6671 argument is null.</exception>
6672 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
6673 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
6674 value.</exception>
6675 <remarks>
6676 Calling StartNew is functionally equivalent to creating a Task using one of its constructors and
6677 then calling
6678 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6679 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6680 for both simplicity and performance.
6681 </remarks>
6682 </member>
6683 <member name="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action{System.Object},System.Object,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)">
6684 <summary>
6685 Creates and starts a <see cref="T:System.Threading.Tasks.Task">Task</see>.
6686 </summary>
6687 <param name="action">The action delegate to execute asynchronously.</param>
6688 <param name="state">An object containing data to be used by the <paramref name="action"/>
6689 delegate.</param>
6690 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned to the new task.</param>
6691 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
6692 created
6693 <see cref="T:System.Threading.Tasks.Task">Task.</see></param>
6694 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
6695 that is used to schedule the created <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
6696 <returns>The started <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
6697 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action"/>
6698 argument is null.</exception>
6699 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="scheduler"/>
6700 argument is null.</exception>
6701 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
6702 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
6703 value.</exception>
6704 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
6705 has already been disposed.
6706 </exception>
6707 <remarks>
6708 Calling StartNew is functionally equivalent to creating a Task using one of its constructors and
6709 then calling
6710 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6711 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6712 for both simplicity and performance.
6713 </remarks>
6714 </member>
6715 <member name="M:System.Threading.Tasks.TaskFactory.StartNew``1(System.Func{``0})">
6716 <summary>
6717 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
6718 </summary>
6719 <typeparam name="TResult">The type of the result available through the
6720 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
6721 </typeparam>
6722 <param name="function">A function delegate that returns the future result to be available through
6723 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6724 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
6725 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
6726 argument is null.</exception>
6727 <remarks>
6728 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
6729 of its constructors and then calling
6730 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6731 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6732 for both simplicity and performance.
6733 </remarks>
6734 </member>
6735 <member name="M:System.Threading.Tasks.TaskFactory.StartNew``1(System.Func{``0},System.Threading.CancellationToken)">
6736 <summary>
6737 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
6738 </summary>
6739 <typeparam name="TResult">The type of the result available through the
6740 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
6741 </typeparam>
6742 <param name="function">A function delegate that returns the future result to be available through
6743 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6744 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned to the new <see cref="T:System.Threading.Tasks.Task"/></param>
6745 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
6746 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
6747 argument is null.</exception>
6748 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
6749 has already been disposed.
6750 </exception>
6751 <remarks>
6752 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
6753 of its constructors and then calling
6754 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6755 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6756 for both simplicity and performance.
6757 </remarks>
6758 </member>
6759 <member name="M:System.Threading.Tasks.TaskFactory.StartNew``1(System.Func{``0},System.Threading.Tasks.TaskCreationOptions)">
6760 <summary>
6761 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
6762 </summary>
6763 <typeparam name="TResult">The type of the result available through the
6764 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
6765 </typeparam>
6766 <param name="function">A function delegate that returns the future result to be available through
6767 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6768 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
6769 created
6770 <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6771 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
6772 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
6773 argument is null.</exception>
6774 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
6775 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
6776 value.</exception>
6777 <remarks>
6778 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
6779 of its constructors and then calling
6780 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6781 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6782 for both simplicity and performance.
6783 </remarks>
6784 </member>
6785 <member name="M:System.Threading.Tasks.TaskFactory.StartNew``1(System.Func{``0},System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)">
6786 <summary>
6787 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
6788 </summary>
6789 <typeparam name="TResult">The type of the result available through the
6790 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
6791 </typeparam>
6792 <param name="function">A function delegate that returns the future result to be available through
6793 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6794 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned to the new task.</param>
6795 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
6796 created
6797 <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6798 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
6799 that is used to schedule the created <see cref="T:System.Threading.Tasks.Task{TResult}">
6800 Task{TResult}</see>.</param>
6801 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
6802 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
6803 argument is null.</exception>
6804 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="scheduler"/>
6805 argument is null.</exception>
6806 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
6807 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
6808 value.</exception>
6809 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
6810 has already been disposed.
6811 </exception>
6812 <remarks>
6813 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
6814 of its constructors and then calling
6815 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6816 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6817 for both simplicity and performance.
6818 </remarks>
6819 </member>
6820 <member name="M:System.Threading.Tasks.TaskFactory.StartNew``1(System.Func{System.Object,``0},System.Object)">
6821 <summary>
6822 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
6823 </summary>
6824 <typeparam name="TResult">The type of the result available through the
6825 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
6826 </typeparam>
6827 <param name="function">A function delegate that returns the future result to be available through
6828 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6829 <param name="state">An object containing data to be used by the <paramref name="function"/>
6830 delegate.</param>
6831 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
6832 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
6833 argument is null.</exception>
6834 <remarks>
6835 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
6836 of its constructors and then calling
6837 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6838 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6839 for both simplicity and performance.
6840 </remarks>
6841 </member>
6842 <member name="M:System.Threading.Tasks.TaskFactory.StartNew``1(System.Func{System.Object,``0},System.Object,System.Threading.CancellationToken)">
6843 <summary>
6844 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
6845 </summary>
6846 <typeparam name="TResult">The type of the result available through the
6847 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
6848 </typeparam>
6849 <param name="function">A function delegate that returns the future result to be available through
6850 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6851 <param name="state">An object containing data to be used by the <paramref name="function"/>
6852 delegate.</param>
6853 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned to the new <see cref="T:System.Threading.Tasks.Task"/></param>
6854 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
6855 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
6856 argument is null.</exception>
6857 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
6858 has already been disposed.
6859 </exception>
6860 <remarks>
6861 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
6862 of its constructors and then calling
6863 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6864 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6865 for both simplicity and performance.
6866 </remarks>
6867 </member>
6868 <member name="M:System.Threading.Tasks.TaskFactory.StartNew``1(System.Func{System.Object,``0},System.Object,System.Threading.Tasks.TaskCreationOptions)">
6869 <summary>
6870 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
6871 </summary>
6872 <typeparam name="TResult">The type of the result available through the
6873 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
6874 </typeparam>
6875 <param name="function">A function delegate that returns the future result to be available through
6876 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6877 <param name="state">An object containing data to be used by the <paramref name="function"/>
6878 delegate.</param>
6879 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
6880 created
6881 <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6882 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
6883 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
6884 argument is null.</exception>
6885 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
6886 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
6887 value.</exception>
6888 <remarks>
6889 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
6890 of its constructors and then calling
6891 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6892 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6893 for both simplicity and performance.
6894 </remarks>
6895 </member>
6896 <member name="M:System.Threading.Tasks.TaskFactory.StartNew``1(System.Func{System.Object,``0},System.Object,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)">
6897 <summary>
6898 Creates and starts a <see cref="T:System.Threading.Tasks.Task{TResult}"/>.
6899 </summary>
6900 <typeparam name="TResult">The type of the result available through the
6901 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
6902 </typeparam>
6903 <param name="function">A function delegate that returns the future result to be available through
6904 the <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6905 <param name="state">An object containing data to be used by the <paramref name="function"/>
6906 delegate.</param>
6907 <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned to the new task.</param>
6908 <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the
6909 created
6910 <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
6911 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
6912 that is used to schedule the created <see cref="T:System.Threading.Tasks.Task{TResult}">
6913 Task{TResult}</see>.</param>
6914 <returns>The started <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
6915 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function"/>
6916 argument is null.</exception>
6917 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="scheduler"/>
6918 argument is null.</exception>
6919 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
6920 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
6921 value.</exception>
6922 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
6923 has already been disposed.
6924 </exception>
6925 <remarks>
6926 Calling StartNew is functionally equivalent to creating a <see cref="T:System.Threading.Tasks.Task`1"/> using one
6927 of its constructors and then calling
6928 <see cref="M:System.Threading.Tasks.Task.Start">Start</see> to schedule it for execution.
6929 However, unless creation and scheduling must be separated, StartNew is the recommended approach
6930 for both simplicity and performance.
6931 </remarks>
6932 </member>
6933 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync(System.IAsyncResult,System.Action{System.IAsyncResult})">
6934 <summary>
6935 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that executes an end method action
6936 when a specified <see cref="T:System.IAsyncResult">IAsyncResult</see> completes.
6937 </summary>
6938 <param name="asyncResult">The IAsyncResult whose completion should trigger the processing of the
6939 <paramref name="endMethod"/>.</param>
6940 <param name="endMethod">The action delegate that processes the completed <paramref
6941 name="asyncResult"/>.</param>
6942 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
6943 <paramref name="asyncResult"/> argument is null.</exception>
6944 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
6945 <paramref name="endMethod"/> argument is null.</exception>
6946 <returns>A <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the asynchronous
6947 operation.</returns>
6948 </member>
6949 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync(System.IAsyncResult,System.Action{System.IAsyncResult},System.Threading.Tasks.TaskCreationOptions)">
6950 <summary>
6951 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that executes an end method action
6952 when a specified <see cref="T:System.IAsyncResult">IAsyncResult</see> completes.
6953 </summary>
6954 <param name="asyncResult">The IAsyncResult whose completion should trigger the processing of the
6955 <paramref name="endMethod"/>.</param>
6956 <param name="endMethod">The action delegate that processes the completed <paramref
6957 name="asyncResult"/>.</param>
6958 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
6959 created <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
6960 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
6961 <paramref name="asyncResult"/> argument is null.</exception>
6962 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
6963 <paramref name="endMethod"/> argument is null.</exception>
6964 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
6965 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
6966 value.</exception>
6967 <returns>A <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the asynchronous
6968 operation.</returns>
6969 </member>
6970 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync(System.IAsyncResult,System.Action{System.IAsyncResult},System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)">
6971 <summary>
6972 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that executes an end method action
6973 when a specified <see cref="T:System.IAsyncResult">IAsyncResult</see> completes.
6974 </summary>
6975 <param name="asyncResult">The IAsyncResult whose completion should trigger the processing of the
6976 <paramref name="endMethod"/>.</param>
6977 <param name="endMethod">The action delegate that processes the completed <paramref name="asyncResult"/>.</param>
6978 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
6979 that is used to schedule the task that executes the end method.</param>
6980 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
6981 created <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
6982 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
6983 <paramref name="asyncResult"/> argument is null.</exception>
6984 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
6985 <paramref name="endMethod"/> argument is null.</exception>
6986 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
6987 <paramref name="scheduler"/> argument is null.</exception>
6988 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
6989 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
6990 value.</exception>
6991 <returns>A <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the asynchronous
6992 operation.</returns>
6993 </member>
6994 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object)">
6995 <summary>
6996 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that represents a pair of begin
6997 and end methods that conform to the Asynchronous Programming Model pattern.
6998 </summary>
6999 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7000 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7001 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7002 delegate.</param>
7003 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7004 <paramref name="beginMethod"/> argument is null.</exception>
7005 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7006 <paramref name="endMethod"/> argument is null.</exception>
7007 <returns>The created <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the
7008 asynchronous operation.</returns>
7009 <remarks>
7010 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7011 </remarks>
7012 </member>
7013 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)">
7014 <summary>
7015 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that represents a pair of begin
7016 and end methods that conform to the Asynchronous Programming Model pattern.
7017 </summary>
7018 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7019 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7020 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
7021 created <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
7022 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7023 delegate.</param>
7024 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7025 <paramref name="beginMethod"/> argument is null.</exception>
7026 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7027 <paramref name="endMethod"/> argument is null.</exception>
7028 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7029 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
7030 value.</exception>
7031 <returns>The created <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the
7032 asynchronous operation.</returns>
7033 <remarks>
7034 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7035 </remarks>
7036 </member>
7037 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``1(System.Func{``0,System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},``0,System.Object)">
7038 <summary>
7039 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that represents a pair of begin
7040 and end methods that conform to the Asynchronous Programming Model pattern.
7041 </summary>
7042 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7043 name="beginMethod"/>
7044 delegate.</typeparam>
7045 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7046 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7047 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7048 delegate.</param>
7049 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7050 delegate.</param>
7051 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7052 <paramref name="beginMethod"/> argument is null.</exception>
7053 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7054 <paramref name="endMethod"/> argument is null.</exception>
7055 <returns>The created <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the
7056 asynchronous operation.</returns>
7057 <remarks>
7058 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7059 </remarks>
7060 </member>
7061 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``1(System.Func{``0,System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},``0,System.Object,System.Threading.Tasks.TaskCreationOptions)">
7062 <summary>
7063 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that represents a pair of begin
7064 and end methods that conform to the Asynchronous Programming Model pattern.
7065 </summary>
7066 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7067 name="beginMethod"/>
7068 delegate.</typeparam>
7069 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7070 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7071 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7072 delegate.</param>
7073 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
7074 created <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
7075 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7076 delegate.</param>
7077 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7078 <paramref name="beginMethod"/> argument is null.</exception>
7079 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7080 <paramref name="endMethod"/> argument is null.</exception>
7081 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7082 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
7083 value.</exception>
7084 <returns>The created <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the
7085 asynchronous operation.</returns>
7086 <remarks>
7087 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7088 </remarks>
7089 </member>
7090 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``2(System.Func{``0,``1,System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},``0,``1,System.Object)">
7091 <summary>
7092 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that represents a pair of begin
7093 and end methods that conform to the Asynchronous Programming Model pattern.
7094 </summary>
7095 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7096 name="beginMethod"/>
7097 delegate.</typeparam>
7098 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
7099 delegate.</typeparam>
7100 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7101 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7102 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7103 delegate.</param>
7104 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
7105 delegate.</param>
7106 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7107 delegate.</param>
7108 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7109 <paramref name="beginMethod"/> argument is null.</exception>
7110 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7111 <paramref name="endMethod"/> argument is null.</exception>
7112 <returns>The created <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the
7113 asynchronous operation.</returns>
7114 <remarks>
7115 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7116 </remarks>
7117 </member>
7118 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``2(System.Func{``0,``1,System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},``0,``1,System.Object,System.Threading.Tasks.TaskCreationOptions)">
7119 <summary>
7120 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that represents a pair of begin
7121 and end methods that conform to the Asynchronous Programming Model pattern.
7122 </summary>
7123 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7124 name="beginMethod"/>
7125 delegate.</typeparam>
7126 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
7127 delegate.</typeparam>
7128 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7129 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7130 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7131 delegate.</param>
7132 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
7133 delegate.</param>
7134 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
7135 created <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
7136 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7137 delegate.</param>
7138 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7139 <paramref name="beginMethod"/> argument is null.</exception>
7140 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7141 <paramref name="endMethod"/> argument is null.</exception>
7142 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7143 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
7144 value.</exception>
7145 <returns>The created <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the
7146 asynchronous operation.</returns>
7147 <remarks>
7148 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7149 </remarks>
7150 </member>
7151 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``3(System.Func{``0,``1,``2,System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},``0,``1,``2,System.Object)">
7152 <summary>
7153 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that represents a pair of begin
7154 and end methods that conform to the Asynchronous Programming Model pattern.
7155 </summary>
7156 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7157 name="beginMethod"/>
7158 delegate.</typeparam>
7159 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
7160 delegate.</typeparam>
7161 <typeparam name="TArg3">The type of the third argument passed to <paramref name="beginMethod"/>
7162 delegate.</typeparam>
7163 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7164 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7165 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7166 delegate.</param>
7167 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
7168 delegate.</param>
7169 <param name="arg3">The third argument passed to the <paramref name="beginMethod"/>
7170 delegate.</param>
7171 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7172 delegate.</param>
7173 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7174 <paramref name="beginMethod"/> argument is null.</exception>
7175 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7176 <paramref name="endMethod"/> argument is null.</exception>
7177 <returns>The created <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the
7178 asynchronous operation.</returns>
7179 <remarks>
7180 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7181 </remarks>
7182 </member>
7183 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``3(System.Func{``0,``1,``2,System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},``0,``1,``2,System.Object,System.Threading.Tasks.TaskCreationOptions)">
7184 <summary>
7185 Creates a <see cref="T:System.Threading.Tasks.Task">Task</see> that represents a pair of begin
7186 and end methods that conform to the Asynchronous Programming Model pattern.
7187 </summary>
7188 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7189 name="beginMethod"/>
7190 delegate.</typeparam>
7191 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
7192 delegate.</typeparam>
7193 <typeparam name="TArg3">The type of the third argument passed to <paramref name="beginMethod"/>
7194 delegate.</typeparam>
7195 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7196 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7197 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7198 delegate.</param>
7199 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
7200 delegate.</param>
7201 <param name="arg3">The third argument passed to the <paramref name="beginMethod"/>
7202 delegate.</param>
7203 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
7204 created <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
7205 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7206 delegate.</param>
7207 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7208 <paramref name="beginMethod"/> argument is null.</exception>
7209 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7210 <paramref name="endMethod"/> argument is null.</exception>
7211 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7212 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
7213 value.</exception>
7214 <returns>The created <see cref="T:System.Threading.Tasks.Task">Task</see> that represents the
7215 asynchronous operation.</returns>
7216 <remarks>
7217 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7218 </remarks>
7219 </member>
7220 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``1(System.IAsyncResult,System.Func{System.IAsyncResult,``0})">
7221 <summary>
7222 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that executes an end
7223 method function when a specified <see cref="T:System.IAsyncResult">IAsyncResult</see> completes.
7224 </summary>
7225 <typeparam name="TResult">The type of the result available through the
7226 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7227 </typeparam>
7228 <param name="asyncResult">The IAsyncResult whose completion should trigger the processing of the
7229 <paramref name="endMethod"/>.</param>
7230 <param name="endMethod">The function delegate that processes the completed <paramref
7231 name="asyncResult"/>.</param>
7232 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7233 <paramref name="asyncResult"/> argument is null.</exception>
7234 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7235 <paramref name="endMethod"/> argument is null.</exception>
7236 <returns>A <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents the
7237 asynchronous operation.</returns>
7238 </member>
7239 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``1(System.IAsyncResult,System.Func{System.IAsyncResult,``0},System.Threading.Tasks.TaskCreationOptions)">
7240 <summary>
7241 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that executes an end
7242 method function when a specified <see cref="T:System.IAsyncResult">IAsyncResult</see> completes.
7243 </summary>
7244 <typeparam name="TResult">The type of the result available through the
7245 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7246 </typeparam>
7247 <param name="asyncResult">The IAsyncResult whose completion should trigger the processing of the
7248 <paramref name="endMethod"/>.</param>
7249 <param name="endMethod">The function delegate that processes the completed <paramref
7250 name="asyncResult"/>.</param>
7251 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
7252 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
7253 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7254 <paramref name="asyncResult"/> argument is null.</exception>
7255 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7256 <paramref name="endMethod"/> argument is null.</exception>
7257 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7258 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
7259 value.</exception>
7260 <returns>A <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents the
7261 asynchronous operation.</returns>
7262 </member>
7263 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``1(System.IAsyncResult,System.Func{System.IAsyncResult,``0},System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)">
7264 <summary>
7265 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that executes an end
7266 method function when a specified <see cref="T:System.IAsyncResult">IAsyncResult</see> completes.
7267 </summary>
7268 <typeparam name="TResult">The type of the result available through the
7269 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7270 </typeparam>
7271 <param name="asyncResult">The IAsyncResult whose completion should trigger the processing of the
7272 <paramref name="endMethod"/>.</param>
7273 <param name="endMethod">The function delegate that processes the completed <paramref name="asyncResult"/>.</param>
7274 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
7275 that is used to schedule the task that executes the end method.</param>
7276 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
7277 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
7278 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7279 <paramref name="asyncResult"/> argument is null.</exception>
7280 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7281 <paramref name="endMethod"/> argument is null.</exception>
7282 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7283 <paramref name="scheduler"/> argument is null.</exception>
7284 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7285 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
7286 value.</exception>
7287 <returns>A <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents the
7288 asynchronous operation.</returns>
7289 </member>
7290 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``1(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,``0},System.Object)">
7291 <summary>
7292 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
7293 begin and end methods that conform to the Asynchronous Programming Model pattern.
7294 </summary>
7295 <typeparam name="TResult">The type of the result available through the
7296 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7297 </typeparam>
7298 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7299 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7300 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7301 delegate.</param>
7302 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7303 <paramref name="beginMethod"/> argument is null.</exception>
7304 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7305 <paramref name="endMethod"/> argument is null.</exception>
7306 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
7307 represents the asynchronous operation.</returns>
7308 <remarks>
7309 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7310 </remarks>
7311 </member>
7312 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``1(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,``0},System.Object,System.Threading.Tasks.TaskCreationOptions)">
7313 <summary>
7314 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
7315 begin and end methods that conform to the Asynchronous Programming Model pattern.
7316 </summary>
7317 <typeparam name="TResult">The type of the result available through the
7318 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7319 </typeparam>
7320 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7321 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7322 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
7323 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
7324 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7325 delegate.</param>
7326 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7327 <paramref name="beginMethod"/> argument is null.</exception>
7328 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7329 <paramref name="endMethod"/> argument is null.</exception>
7330 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7331 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
7332 value.</exception>
7333 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
7334 represents the asynchronous operation.</returns>
7335 <remarks>
7336 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7337 </remarks>
7338 </member>
7339 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``2(System.Func{``0,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,``1},``0,System.Object)">
7340 <summary>
7341 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
7342 begin and end methods that conform to the Asynchronous Programming Model pattern.
7343 </summary>
7344 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7345 name="beginMethod"/> delegate.</typeparam>
7346 <typeparam name="TResult">The type of the result available through the
7347 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7348 </typeparam>
7349 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7350 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7351 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7352 delegate.</param>
7353 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7354 delegate.</param>
7355 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7356 <paramref name="beginMethod"/> argument is null.</exception>
7357 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7358 <paramref name="endMethod"/> argument is null.</exception>
7359 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
7360 represents the asynchronous operation.</returns>
7361 <remarks>
7362 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7363 </remarks>
7364 </member>
7365 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``2(System.Func{``0,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,``1},``0,System.Object,System.Threading.Tasks.TaskCreationOptions)">
7366 <summary>
7367 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
7368 begin and end methods that conform to the Asynchronous Programming Model pattern.
7369 </summary>
7370 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7371 name="beginMethod"/> delegate.</typeparam>
7372 <typeparam name="TResult">The type of the result available through the
7373 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7374 </typeparam>
7375 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7376 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7377 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7378 delegate.</param>
7379 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
7380 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
7381 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7382 delegate.</param>
7383 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7384 <paramref name="beginMethod"/> argument is null.</exception>
7385 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7386 <paramref name="endMethod"/> argument is null.</exception>
7387 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7388 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
7389 value.</exception>
7390 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
7391 represents the asynchronous operation.</returns>
7392 <remarks>
7393 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7394 </remarks>
7395 </member>
7396 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``3(System.Func{``0,``1,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,``2},``0,``1,System.Object)">
7397 <summary>
7398 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
7399 begin and end methods that conform to the Asynchronous Programming Model pattern.
7400 </summary>
7401 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7402 name="beginMethod"/> delegate.</typeparam>
7403 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
7404 delegate.</typeparam>
7405 <typeparam name="TResult">The type of the result available through the
7406 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7407 </typeparam>
7408 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7409 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7410 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7411 delegate.</param>
7412 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
7413 delegate.</param>
7414 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7415 delegate.</param>
7416 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7417 <paramref name="beginMethod"/> argument is null.</exception>
7418 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7419 <paramref name="endMethod"/> argument is null.</exception>
7420 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
7421 represents the asynchronous operation.</returns>
7422 <remarks>
7423 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7424 </remarks>
7425 </member>
7426 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``3(System.Func{``0,``1,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,``2},``0,``1,System.Object,System.Threading.Tasks.TaskCreationOptions)">
7427 <summary>
7428 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
7429 begin and end methods that conform to the Asynchronous Programming Model pattern.
7430 </summary>
7431 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7432 name="beginMethod"/> delegate.</typeparam>
7433 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
7434 delegate.</typeparam>
7435 <typeparam name="TResult">The type of the result available through the
7436 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7437 </typeparam>
7438 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7439 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7440 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7441 delegate.</param>
7442 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
7443 delegate.</param>
7444 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
7445 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
7446 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7447 delegate.</param>
7448 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7449 <paramref name="beginMethod"/> argument is null.</exception>
7450 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7451 <paramref name="endMethod"/> argument is null.</exception>
7452 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7453 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
7454 value.</exception>
7455 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
7456 represents the asynchronous operation.</returns>
7457 <remarks>
7458 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7459 </remarks>
7460 </member>
7461 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``4(System.Func{``0,``1,``2,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,``3},``0,``1,``2,System.Object)">
7462 <summary>
7463 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
7464 begin and end methods that conform to the Asynchronous Programming Model pattern.
7465 </summary>
7466 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7467 name="beginMethod"/> delegate.</typeparam>
7468 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
7469 delegate.</typeparam>
7470 <typeparam name="TArg3">The type of the third argument passed to <paramref name="beginMethod"/>
7471 delegate.</typeparam>
7472 <typeparam name="TResult">The type of the result available through the
7473 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7474 </typeparam>
7475 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7476 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7477 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7478 delegate.</param>
7479 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
7480 delegate.</param>
7481 <param name="arg3">The third argument passed to the <paramref name="beginMethod"/>
7482 delegate.</param>
7483 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7484 delegate.</param>
7485 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7486 <paramref name="beginMethod"/> argument is null.</exception>
7487 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7488 <paramref name="endMethod"/> argument is null.</exception>
7489 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
7490 represents the asynchronous operation.</returns>
7491 <remarks>
7492 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7493 </remarks>
7494 </member>
7495 <member name="M:System.Threading.Tasks.TaskFactory.FromAsync``4(System.Func{``0,``1,``2,System.AsyncCallback,System.Object,System.IAsyncResult},System.Func{System.IAsyncResult,``3},``0,``1,``2,System.Object,System.Threading.Tasks.TaskCreationOptions)">
7496 <summary>
7497 Creates a <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that represents a pair of
7498 begin and end methods that conform to the Asynchronous Programming Model pattern.
7499 </summary>
7500 <typeparam name="TArg1">The type of the first argument passed to the <paramref
7501 name="beginMethod"/> delegate.</typeparam>
7502 <typeparam name="TArg2">The type of the second argument passed to <paramref name="beginMethod"/>
7503 delegate.</typeparam>
7504 <typeparam name="TArg3">The type of the third argument passed to <paramref name="beginMethod"/>
7505 delegate.</typeparam>
7506 <typeparam name="TResult">The type of the result available through the
7507 <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.
7508 </typeparam>
7509 <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
7510 <param name="endMethod">The delegate that ends the asynchronous operation.</param>
7511 <param name="arg1">The first argument passed to the <paramref name="beginMethod"/>
7512 delegate.</param>
7513 <param name="arg2">The second argument passed to the <paramref name="beginMethod"/>
7514 delegate.</param>
7515 <param name="arg3">The third argument passed to the <paramref name="beginMethod"/>
7516 delegate.</param>
7517 <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the
7518 created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
7519 <param name="state">An object containing data to be used by the <paramref name="beginMethod"/>
7520 delegate.</param>
7521 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7522 <paramref name="beginMethod"/> argument is null.</exception>
7523 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7524 <paramref name="endMethod"/> argument is null.</exception>
7525 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7526 <paramref name="creationOptions"/> argument specifies an invalid TaskCreationOptions
7527 value.</exception>
7528 <returns>The created <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see> that
7529 represents the asynchronous operation.</returns>
7530 <remarks>
7531 This method throws any exceptions thrown by the <paramref name="beginMethod"/>.
7532 </remarks>
7533 </member>
7534 <member name="M:System.Threading.Tasks.TaskFactory.CheckFromAsyncOptions(System.Threading.Tasks.TaskCreationOptions,System.Boolean)">
7535 <summary>
7536 Check validity of options passed to FromAsync method
7537 </summary>
7538 <param name="creationOptions">The options to be validated.</param>
7539 <param name="hasBeginMethod">determines type of FromAsync method that called this method</param>
7540 </member>
7541 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll(System.Threading.Tasks.Task[],System.Action{System.Threading.Tasks.Task[]})">
7542 <summary>
7543 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
7544 that will be started upon the completion of a set of provided Tasks.
7545 </summary>
7546 <param name="tasks">The array of tasks from which to continue.</param>
7547 <param name="continuationAction">The action delegate to execute when all tasks in
7548 the <paramref name="tasks"/> array have completed.</param>
7549 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
7550 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7551 <paramref name="tasks"/> array is null.</exception>
7552 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7553 <paramref name="continuationAction"/> argument is null.</exception>
7554 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7555 <paramref name="tasks"/> array contains a null value.</exception>
7556 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7557 <paramref name="tasks"/> array is empty.</exception>
7558 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7559 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7560 </member>
7561 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll(System.Threading.Tasks.Task[],System.Action{System.Threading.Tasks.Task[]},System.Threading.CancellationToken)">
7562 <summary>
7563 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
7564 that will be started upon the completion of a set of provided Tasks.
7565 </summary>
7566 <param name="tasks">The array of tasks from which to continue.</param>
7567 <param name="continuationAction">The action delegate to execute when all tasks in
7568 the <paramref name="tasks"/> array have completed.</param>
7569 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7570 that will be assigned to the new continuation task.</param>
7571 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
7572 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7573 <paramref name="tasks"/> array is null.</exception>
7574 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7575 <paramref name="continuationAction"/> argument is null.</exception>
7576 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7577 <paramref name="tasks"/> array contains a null value.</exception>
7578 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7579 <paramref name="tasks"/> array is empty.</exception>
7580 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7581 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7582 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7583 has already been disposed.
7584 </exception>
7585 </member>
7586 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll(System.Threading.Tasks.Task[],System.Action{System.Threading.Tasks.Task[]},System.Threading.Tasks.TaskContinuationOptions)">
7587 <summary>
7588 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
7589 that will be started upon the completion of a set of provided Tasks.
7590 </summary>
7591 <param name="tasks">The array of tasks from which to continue.</param>
7592 <param name="continuationAction">The action delegate to execute when all tasks in the <paramref name="tasks"/> array have completed.</param>
7593 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
7594 TaskContinuationOptions</see> value that controls the behavior of
7595 the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
7596 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
7597 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7598 <paramref name="tasks"/> array is null.</exception>
7599 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7600 <paramref name="continuationAction"/> argument is null.</exception>
7601 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7602 <paramref name="tasks"/> array contains a null value.</exception>
7603 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7604 <paramref name="tasks"/> array is empty.</exception>
7605 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7606 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
7607 value.</exception>
7608 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7609 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7610 <remarks>
7611 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
7612 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
7613 will be executed, are illegal with ContinueWhenAll.
7614 </remarks>
7615 </member>
7616 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll(System.Threading.Tasks.Task[],System.Action{System.Threading.Tasks.Task[]},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
7617 <summary>
7618 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
7619 that will be started upon the completion of a set of provided Tasks.
7620 </summary>
7621 <param name="tasks">The array of tasks from which to continue.</param>
7622 <param name="continuationAction">The action delegate to execute when all tasks in the <paramref name="tasks"/> array have completed.</param>
7623 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7624 that will be assigned to the new continuation task.</param>
7625 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
7626 TaskContinuationOptions</see> value that controls the behavior of
7627 the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
7628 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
7629 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
7630 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
7631 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7632 <paramref name="tasks"/> array is null.</exception>
7633 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7634 <paramref name="continuationAction"/> argument is null.</exception>
7635 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7636 <paramref name="scheduler"/> argument is null.</exception>
7637 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7638 <paramref name="tasks"/> array contains a null value.</exception>
7639 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7640 <paramref name="tasks"/> array is empty.</exception>
7641 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7642 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
7643 value.</exception>
7644 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7645 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7646 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7647 has already been disposed.
7648 </exception>
7649 <remarks>
7650 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
7651 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
7652 will be executed, are illegal with ContinueWhenAll.
7653 </remarks>
7654 </member>
7655 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``1(System.Threading.Tasks.Task{``0}[],System.Action{System.Threading.Tasks.Task{``0}[]})">
7656 <summary>
7657 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
7658 that will be started upon the completion of a set of provided Tasks.
7659 </summary>
7660 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
7661 <param name="tasks">The array of tasks from which to continue.</param>
7662 <param name="continuationAction">The action delegate to execute when all tasks in
7663 the <paramref name="tasks"/> array have completed.</param>
7664 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
7665 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7666 <paramref name="tasks"/> array is null.</exception>
7667 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7668 <paramref name="continuationAction"/> argument is null.</exception>
7669 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7670 <paramref name="tasks"/> array contains a null value.</exception>
7671 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7672 <paramref name="tasks"/> array is empty.</exception>
7673 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7674 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7675 </member>
7676 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``1(System.Threading.Tasks.Task{``0}[],System.Action{System.Threading.Tasks.Task{``0}[]},System.Threading.CancellationToken)">
7677 <summary>
7678 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
7679 that will be started upon the completion of a set of provided Tasks.
7680 </summary>
7681 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
7682 <param name="tasks">The array of tasks from which to continue.</param>
7683 <param name="continuationAction">The action delegate to execute when all tasks in
7684 the <paramref name="tasks"/> array have completed.</param>
7685 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7686 that will be assigned to the new continuation task.</param>
7687 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
7688 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7689 <paramref name="tasks"/> array is null.</exception>
7690 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7691 <paramref name="continuationAction"/> argument is null.</exception>
7692 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7693 <paramref name="tasks"/> array contains a null value.</exception>
7694 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7695 <paramref name="tasks"/> array is empty.</exception>
7696 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7697 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7698 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7699 has already been disposed.
7700 </exception>
7701 </member>
7702 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``1(System.Threading.Tasks.Task{``0}[],System.Action{System.Threading.Tasks.Task{``0}[]},System.Threading.Tasks.TaskContinuationOptions)">
7703 <summary>
7704 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
7705 that will be started upon the completion of a set of provided Tasks.
7706 </summary>
7707 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
7708 <param name="tasks">The array of tasks from which to continue.</param>
7709 <param name="continuationAction">The action delegate to execute when all tasks in the <paramref name="tasks"/> array have completed.</param>
7710 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
7711 TaskContinuationOptions</see> value that controls the behavior of
7712 the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
7713 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
7714 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7715 <paramref name="tasks"/> array is null.</exception>
7716 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7717 <paramref name="continuationAction"/> argument is null.</exception>
7718 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7719 <paramref name="tasks"/> array contains a null value.</exception>
7720 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7721 <paramref name="tasks"/> array is empty.</exception>
7722 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7723 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
7724 value.</exception>
7725 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7726 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7727 <remarks>
7728 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
7729 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
7730 will be executed, are illegal with ContinueWhenAll.
7731 </remarks>
7732 </member>
7733 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``1(System.Threading.Tasks.Task{``0}[],System.Action{System.Threading.Tasks.Task{``0}[]},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
7734 <summary>
7735 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
7736 that will be started upon the completion of a set of provided Tasks.
7737 </summary>
7738 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
7739 <param name="tasks">The array of tasks from which to continue.</param>
7740 <param name="continuationAction">The action delegate to execute when all tasks in the <paramref name="tasks"/> array have completed.</param>
7741 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7742 that will be assigned to the new continuation task.</param>
7743 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
7744 TaskContinuationOptions</see> value that controls the behavior of
7745 the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
7746 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
7747 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
7748 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
7749 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7750 <paramref name="tasks"/> array is null.</exception>
7751 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7752 <paramref name="continuationAction"/> argument is null.</exception>
7753 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7754 <paramref name="scheduler"/> argument is null.</exception>
7755 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7756 <paramref name="tasks"/> array contains a null value.</exception>
7757 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7758 <paramref name="tasks"/> array is empty.</exception>
7759 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7760 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
7761 value.</exception>
7762 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7763 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7764 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7765 has already been disposed.
7766 </exception>
7767 <remarks>
7768 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
7769 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
7770 will be executed, are illegal with ContinueWhenAll.
7771 </remarks>
7772 </member>
7773 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``1(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task[],``0})">
7774 <summary>
7775 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
7776 that will be started upon the completion of a set of provided Tasks.
7777 </summary>
7778 <typeparam name="TResult">The type of the result that is returned by the <paramref
7779 name="continuationFunction"/>
7780 delegate and associated with the created <see
7781 cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
7782 <param name="tasks">The array of tasks from which to continue.</param>
7783 <param name="continuationFunction">The function delegate to execute when all tasks in the
7784 <paramref name="tasks"/> array have completed.</param>
7785 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
7786 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7787 <paramref name="tasks"/> array is null.</exception>
7788 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7789 <paramref name="continuationFunction"/> argument is null.</exception>
7790 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7791 <paramref name="tasks"/> array contains a null value.</exception>
7792 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7793 <paramref name="tasks"/> array is empty.</exception>
7794 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7795 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7796 </member>
7797 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``1(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task[],``0},System.Threading.CancellationToken)">
7798 <summary>
7799 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
7800 that will be started upon the completion of a set of provided Tasks.
7801 </summary>
7802 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
7803 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
7804 <param name="tasks">The array of tasks from which to continue.</param>
7805 <param name="continuationFunction">The function delegate to execute when all tasks in the
7806 <paramref name="tasks"/> array have completed.</param>
7807 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7808 that will be assigned to the new continuation task.</param>
7809 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
7810 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7811 <paramref name="tasks"/> array is null.</exception>
7812 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7813 <paramref name="continuationFunction"/> argument is null.</exception>
7814 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7815 <paramref name="tasks"/> array contains a null value.</exception>
7816 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7817 <paramref name="tasks"/> array is empty.</exception>
7818 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7819 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7820 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7821 has already been disposed.
7822 </exception>
7823 </member>
7824 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``1(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task[],``0},System.Threading.Tasks.TaskContinuationOptions)">
7825 <summary>
7826 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
7827 that will be started upon the completion of a set of provided Tasks.
7828 </summary>
7829 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
7830 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
7831 <param name="tasks">The array of tasks from which to continue.</param>
7832 <param name="continuationFunction">The function delegate to execute when all tasks in the
7833 <paramref name="tasks"/> array have completed.</param>
7834 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
7835 TaskContinuationOptions</see> value that controls the behavior of
7836 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
7837 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
7838 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7839 <paramref name="tasks"/> array is null.</exception>
7840 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7841 <paramref name="continuationFunction"/> argument is null.</exception>
7842 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7843 <paramref name="tasks"/> array contains a null value.</exception>
7844 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7845 <paramref name="tasks"/> array is empty.</exception>
7846 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7847 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
7848 value.</exception>
7849 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7850 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7851 <remarks>
7852 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
7853 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
7854 will be executed, are illegal with ContinueWhenAll.
7855 </remarks>
7856 </member>
7857 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``1(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task[],``0},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
7858 <summary>
7859 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
7860 that will be started upon the completion of a set of provided Tasks.
7861 </summary>
7862 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
7863 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
7864 <param name="tasks">The array of tasks from which to continue.</param>
7865 <param name="continuationFunction">The function delegate to execute when all tasks in the
7866 <paramref name="tasks"/> array have completed.</param>
7867 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7868 that will be assigned to the new continuation task.</param>
7869 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
7870 TaskContinuationOptions</see> value that controls the behavior of
7871 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
7872 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
7873 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
7874 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
7875 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7876 <paramref name="tasks"/> array is null.</exception>
7877 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7878 <paramref name="continuationFunction"/> argument is null.</exception>
7879 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7880 <paramref name="scheduler"/> argument is null.</exception>
7881 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7882 <paramref name="tasks"/> array contains a null value.</exception>
7883 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7884 <paramref name="tasks"/> array is empty.</exception>
7885 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7886 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
7887 value.</exception>
7888 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7889 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7890 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7891 has already been disposed.
7892 </exception>
7893 <remarks>
7894 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
7895 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
7896 will be executed, are illegal with ContinueWhenAll.
7897 </remarks>
7898 </member>
7899 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``2(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0}[],``1})">
7900 <summary>
7901 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
7902 that will be started upon the completion of a set of provided Tasks.
7903 </summary>
7904 <typeparam name="TResult">The type of the result that is returned by the <paramref
7905 name="continuationFunction"/>
7906 delegate and associated with the created <see
7907 cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
7908 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
7909 <param name="tasks">The array of tasks from which to continue.</param>
7910 <param name="continuationFunction">The function delegate to execute when all tasks in the
7911 <paramref name="tasks"/> array have completed.</param>
7912 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
7913 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7914 <paramref name="tasks"/> array is null.</exception>
7915 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7916 <paramref name="continuationFunction"/> argument is null.</exception>
7917 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7918 <paramref name="tasks"/> array contains a null value.</exception>
7919 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7920 <paramref name="tasks"/> array is empty.</exception>
7921 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7922 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7923 </member>
7924 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``2(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0}[],``1},System.Threading.CancellationToken)">
7925 <summary>
7926 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
7927 that will be started upon the completion of a set of provided Tasks.
7928 </summary>
7929 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
7930 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
7931 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
7932 <param name="tasks">The array of tasks from which to continue.</param>
7933 <param name="continuationFunction">The function delegate to execute when all tasks in the
7934 <paramref name="tasks"/> array have completed.</param>
7935 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7936 that will be assigned to the new continuation task.</param>
7937 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
7938 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7939 <paramref name="tasks"/> array is null.</exception>
7940 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7941 <paramref name="continuationFunction"/> argument is null.</exception>
7942 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7943 <paramref name="tasks"/> array contains a null value.</exception>
7944 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7945 <paramref name="tasks"/> array is empty.</exception>
7946 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7947 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7948 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7949 has already been disposed.
7950 </exception>
7951 </member>
7952 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``2(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0}[],``1},System.Threading.Tasks.TaskContinuationOptions)">
7953 <summary>
7954 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
7955 that will be started upon the completion of a set of provided Tasks.
7956 </summary>
7957 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
7958 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
7959 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
7960 <param name="tasks">The array of tasks from which to continue.</param>
7961 <param name="continuationFunction">The function delegate to execute when all tasks in the
7962 <paramref name="tasks"/> array have completed.</param>
7963 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
7964 TaskContinuationOptions</see> value that controls the behavior of
7965 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
7966 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
7967 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7968 <paramref name="tasks"/> array is null.</exception>
7969 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
7970 <paramref name="continuationFunction"/> argument is null.</exception>
7971 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7972 <paramref name="tasks"/> array contains a null value.</exception>
7973 <exception cref="T:System.ArgumentException">The exception that is thrown when the
7974 <paramref name="tasks"/> array is empty.</exception>
7975 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
7976 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
7977 value.</exception>
7978 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
7979 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
7980 <remarks>
7981 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
7982 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
7983 will be executed, are illegal with ContinueWhenAll.
7984 </remarks>
7985 </member>
7986 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAll``2(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0}[],``1},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
7987 <summary>
7988 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
7989 that will be started upon the completion of a set of provided Tasks.
7990 </summary>
7991 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
7992 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
7993 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
7994 <param name="tasks">The array of tasks from which to continue.</param>
7995 <param name="continuationFunction">The function delegate to execute when all tasks in the
7996 <paramref name="tasks"/> array have completed.</param>
7997 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
7998 that will be assigned to the new continuation task.</param>
7999 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
8000 TaskContinuationOptions</see> value that controls the behavior of
8001 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
8002 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
8003 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
8004 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
8005 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8006 <paramref name="tasks"/> array is null.</exception>
8007 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8008 <paramref name="continuationFunction"/> argument is null.</exception>
8009 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8010 <paramref name="scheduler"/> argument is null.</exception>
8011 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8012 <paramref name="tasks"/> array contains a null value.</exception>
8013 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8014 <paramref name="tasks"/> array is empty.</exception>
8015 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
8016 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
8017 value.</exception>
8018 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8019 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8020 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8021 has already been disposed.
8022 </exception>
8023 <remarks>
8024 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
8025 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
8026 will be executed, are illegal with ContinueWhenAll.
8027 </remarks>
8028 </member>
8029 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny(System.Threading.Tasks.Task[],System.Action{System.Threading.Tasks.Task})">
8030 <summary>
8031 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
8032 that will be started upon the completion of any Task in the provided set.
8033 </summary>
8034 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8035 <param name="continuationAction">The action delegate to execute when one task in the <paramref
8036 name="tasks"/> array completes.</param>
8037 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
8038 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8039 <paramref name="tasks"/> array is null.</exception>
8040 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8041 <paramref name="continuationAction"/> argument is null.</exception>
8042 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8043 <paramref name="tasks"/> array contains a null value.</exception>
8044 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8045 <paramref name="tasks"/> array is empty.</exception>
8046 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8047 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8048 </member>
8049 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny(System.Threading.Tasks.Task[],System.Action{System.Threading.Tasks.Task},System.Threading.CancellationToken)">
8050 <summary>
8051 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
8052 that will be started upon the completion of any Task in the provided set.
8053 </summary>
8054 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8055 <param name="continuationAction">The action delegate to execute when one task in the <paramref name="tasks"/> array completes.</param>
8056 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8057 that will be assigned to the new continuation task.</param>
8058 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
8059 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8060 <paramref name="tasks"/> array is null.</exception>
8061 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8062 <paramref name="continuationAction"/> argument is null.</exception>
8063 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8064 <paramref name="tasks"/> array contains a null value.</exception>
8065 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8066 <paramref name="tasks"/> array is empty.</exception>
8067 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8068 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8069 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8070 has already been disposed.
8071 </exception>
8072 </member>
8073 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny(System.Threading.Tasks.Task[],System.Action{System.Threading.Tasks.Task},System.Threading.Tasks.TaskContinuationOptions)">
8074 <summary>
8075 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
8076 that will be started upon the completion of any Task in the provided set.
8077 </summary>
8078 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8079 <param name="continuationAction">The action delegate to execute when one task in the <paramref name="tasks"/> array completes.</param>
8080 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
8081 TaskContinuationOptions</see> value that controls the behavior of
8082 the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
8083 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
8084 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8085 <paramref name="tasks"/> array is null.</exception>
8086 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8087 <paramref name="continuationAction"/> argument is null.</exception>
8088 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8089 <paramref name="tasks"/> array contains a null value.</exception>
8090 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8091 <paramref name="tasks"/> array is empty.</exception>
8092 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
8093 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
8094 value.</exception>
8095 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8096 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8097 <remarks>
8098 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
8099 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
8100 will be executed, are illegal with ContinueWhenAny.
8101 </remarks>
8102 </member>
8103 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny(System.Threading.Tasks.Task[],System.Action{System.Threading.Tasks.Task},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
8104 <summary>
8105 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
8106 that will be started upon the completion of any Task in the provided set.
8107 </summary>
8108 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8109 <param name="continuationAction">The action delegate to execute when one task in the <paramref name="tasks"/> array completes.</param>
8110 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8111 that will be assigned to the new continuation task.</param>
8112 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
8113 TaskContinuationOptions</see> value that controls the behavior of
8114 the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
8115 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
8116 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
8117 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</returns>
8118 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8119 <paramref name="tasks"/> array is null.</exception>
8120 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8121 <paramref name="continuationAction"/> argument is null.</exception>
8122 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8123 <paramref name="scheduler"/> argument is null.</exception>
8124 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8125 <paramref name="tasks"/> array contains a null value.</exception>
8126 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8127 <paramref name="tasks"/> array is empty.</exception>
8128 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
8129 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
8130 value.</exception>
8131 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8132 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8133 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8134 has already been disposed.
8135 </exception>
8136 <remarks>
8137 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
8138 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
8139 will be executed, are illegal with ContinueWhenAny.
8140 </remarks>
8141 </member>
8142 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``1(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task,``0})">
8143 <summary>
8144 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
8145 that will be started upon the completion of any Task in the provided set.
8146 </summary>
8147 <typeparam name="TResult">The type of the result that is returned by the <paramref
8148 name="continuationFunction"/>
8149 delegate and associated with the created <see
8150 cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
8151 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8152 <param name="continuationFunction">The function delegate to execute when one task in the
8153 <paramref name="tasks"/> array completes.</param>
8154 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
8155 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8156 <paramref name="tasks"/> array is null.</exception>
8157 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8158 <paramref name="continuationFunction"/> argument is null.</exception>
8159 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8160 <paramref name="tasks"/> array contains a null value.</exception>
8161 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8162 <paramref name="tasks"/> array is empty.</exception>
8163 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8164 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8165 </member>
8166 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``1(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task,``0},System.Threading.CancellationToken)">
8167 <summary>
8168 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
8169 that will be started upon the completion of any Task in the provided set.
8170 </summary>
8171 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
8172 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
8173 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8174 <param name="continuationFunction">The function delegate to execute when one task in the
8175 <paramref name="tasks"/> array completes.</param>
8176 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8177 that will be assigned to the new continuation task.</param>
8178 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
8179 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8180 <paramref name="tasks"/> array is null.</exception>
8181 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8182 <paramref name="continuationFunction"/> argument is null.</exception>
8183 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8184 <paramref name="tasks"/> array contains a null value.</exception>
8185 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8186 <paramref name="tasks"/> array is empty.</exception>
8187 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8188 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8189 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8190 has already been disposed.
8191 </exception>
8192 </member>
8193 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``1(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task,``0},System.Threading.Tasks.TaskContinuationOptions)">
8194 <summary>
8195 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
8196 that will be started upon the completion of any Task in the provided set.
8197 </summary>
8198 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
8199 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
8200 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8201 <param name="continuationFunction">The function delegate to execute when one task in the
8202 <paramref name="tasks"/> array completes.</param>
8203 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
8204 TaskContinuationOptions</see> value that controls the behavior of
8205 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
8206 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
8207 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8208 <paramref name="tasks"/> array is null.</exception>
8209 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8210 <paramref name="continuationFunction"/> argument is null.</exception>
8211 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8212 <paramref name="tasks"/> array contains a null value.</exception>
8213 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8214 <paramref name="tasks"/> array is empty.</exception>
8215 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
8216 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
8217 value.</exception>
8218 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8219 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8220 <remarks>
8221 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
8222 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
8223 will be executed, are illegal with ContinueWhenAny.
8224 </remarks>
8225 </member>
8226 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``1(System.Threading.Tasks.Task[],System.Func{System.Threading.Tasks.Task,``0},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
8227 <summary>
8228 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
8229 that will be started upon the completion of any Task in the provided set.
8230 </summary>
8231 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
8232 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
8233 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8234 <param name="continuationFunction">The function delegate to execute when one task in the
8235 <paramref name="tasks"/> array completes.</param>
8236 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8237 that will be assigned to the new continuation task.</param>
8238 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
8239 TaskContinuationOptions</see> value that controls the behavior of
8240 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
8241 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
8242 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
8243 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
8244 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8245 <paramref name="tasks"/> array is null.</exception>
8246 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8247 <paramref name="continuationFunction"/> argument is null.</exception>
8248 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8249 <paramref name="scheduler"/> argument is null.</exception>
8250 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8251 <paramref name="tasks"/> array contains a null value.</exception>
8252 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8253 <paramref name="tasks"/> array is empty.</exception>
8254 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
8255 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
8256 value.</exception>
8257 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8258 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8259 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8260 has already been disposed.
8261 </exception>
8262 <remarks>
8263 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
8264 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
8265 will be executed, are illegal with ContinueWhenAny.
8266 </remarks>
8267 </member>
8268 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``2(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0},``1})">
8269 <summary>
8270 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
8271 that will be started upon the completion of any Task in the provided set.
8272 </summary>
8273 <typeparam name="TResult">The type of the result that is returned by the <paramref
8274 name="continuationFunction"/>
8275 delegate and associated with the created <see
8276 cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
8277 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
8278 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8279 <param name="continuationFunction">The function delegate to execute when one task in the
8280 <paramref name="tasks"/> array completes.</param>
8281 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
8282 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8283 <paramref name="tasks"/> array is null.</exception>
8284 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8285 <paramref name="continuationFunction"/> argument is null.</exception>
8286 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8287 <paramref name="tasks"/> array contains a null value.</exception>
8288 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8289 <paramref name="tasks"/> array is empty.</exception>
8290 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8291 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8292 </member>
8293 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``2(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0},``1},System.Threading.CancellationToken)">
8294 <summary>
8295 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
8296 that will be started upon the completion of any Task in the provided set.
8297 </summary>
8298 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
8299 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
8300 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
8301 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8302 <param name="continuationFunction">The function delegate to execute when one task in the
8303 <paramref name="tasks"/> array completes.</param>
8304 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8305 that will be assigned to the new continuation task.</param>
8306 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
8307 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8308 <paramref name="tasks"/> array is null.</exception>
8309 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8310 <paramref name="continuationFunction"/> argument is null.</exception>
8311 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8312 <paramref name="tasks"/> array contains a null value.</exception>
8313 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8314 <paramref name="tasks"/> array is empty.</exception>
8315 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8316 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8317 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8318 has already been disposed.
8319 </exception>
8320 </member>
8321 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``2(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0},``1},System.Threading.Tasks.TaskContinuationOptions)">
8322 <summary>
8323 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
8324 that will be started upon the completion of any Task in the provided set.
8325 </summary>
8326 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
8327 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
8328 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
8329 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8330 <param name="continuationFunction">The function delegate to execute when one task in the
8331 <paramref name="tasks"/> array completes.</param>
8332 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
8333 TaskContinuationOptions</see> value that controls the behavior of
8334 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
8335 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
8336 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8337 <paramref name="tasks"/> array is null.</exception>
8338 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8339 <paramref name="continuationFunction"/> argument is null.</exception>
8340 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8341 <paramref name="tasks"/> array contains a null value.</exception>
8342 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8343 <paramref name="tasks"/> array is empty.</exception>
8344 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
8345 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
8346 value.</exception>
8347 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8348 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8349 <remarks>
8350 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
8351 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
8352 will be executed, are illegal with ContinueWhenAny.
8353 </remarks>
8354 </member>
8355 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``2(System.Threading.Tasks.Task{``0}[],System.Func{System.Threading.Tasks.Task{``0},``1},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
8356 <summary>
8357 Creates a continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>
8358 that will be started upon the completion of any Task in the provided set.
8359 </summary>
8360 <typeparam name="TResult">The type of the result that is returned by the <paramref name="continuationFunction"/>
8361 delegate and associated with the created <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</typeparam>
8362 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
8363 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8364 <param name="continuationFunction">The function delegate to execute when one task in the
8365 <paramref name="tasks"/> array completes.</param>
8366 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8367 that will be assigned to the new continuation task.</param>
8368 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
8369 TaskContinuationOptions</see> value that controls the behavior of
8370 the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}">Task</see>.</param>
8371 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
8372 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
8373 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</returns>
8374 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8375 <paramref name="tasks"/> array is null.</exception>
8376 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8377 <paramref name="continuationFunction"/> argument is null.</exception>
8378 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8379 <paramref name="scheduler"/> argument is null.</exception>
8380 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8381 <paramref name="tasks"/> array contains a null value.</exception>
8382 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8383 <paramref name="tasks"/> array is empty.</exception>
8384 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
8385 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
8386 value.</exception>
8387 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8388 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8389 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8390 has already been disposed.
8391 </exception>
8392 <remarks>
8393 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
8394 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
8395 will be executed, are illegal with ContinueWhenAny.
8396 </remarks>
8397 </member>
8398 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``1(System.Threading.Tasks.Task{``0}[],System.Action{System.Threading.Tasks.Task{``0}})">
8399 <summary>
8400 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
8401 that will be started upon the completion of any Task in the provided set.
8402 </summary>
8403 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
8404 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8405 <param name="continuationAction">The action delegate to execute when one task in the
8406 <paramref name="tasks"/> array completes.</param>
8407 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
8408 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8409 <paramref name="tasks"/> array is null.</exception>
8410 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8411 <paramref name="continuationAction"/> argument is null.</exception>
8412 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8413 <paramref name="tasks"/> array contains a null value.</exception>
8414 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8415 <paramref name="tasks"/> array is empty.</exception>
8416 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8417 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8418 </member>
8419 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``1(System.Threading.Tasks.Task{``0}[],System.Action{System.Threading.Tasks.Task{``0}},System.Threading.CancellationToken)">
8420 <summary>
8421 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
8422 that will be started upon the completion of any Task in the provided set.
8423 </summary>
8424 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
8425 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8426 <param name="continuationAction">The action delegate to execute when one task in the
8427 <paramref name="tasks"/> array completes.</param>
8428 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8429 that will be assigned to the new continuation task.</param>
8430 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
8431 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8432 <paramref name="tasks"/> array is null.</exception>
8433 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8434 <paramref name="continuationAction"/> argument is null.</exception>
8435 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8436 <paramref name="tasks"/> array contains a null value.</exception>
8437 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8438 <paramref name="tasks"/> array is empty.</exception>
8439 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8440 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8441 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8442 has already been disposed.
8443 </exception>
8444 </member>
8445 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``1(System.Threading.Tasks.Task{``0}[],System.Action{System.Threading.Tasks.Task{``0}},System.Threading.Tasks.TaskContinuationOptions)">
8446 <summary>
8447 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
8448 that will be started upon the completion of any Task in the provided set.
8449 </summary>
8450 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
8451 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8452 <param name="continuationAction">The action delegate to execute when one task in the
8453 <paramref name="tasks"/> array completes.</param>
8454 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
8455 TaskContinuationOptions</see> value that controls the behavior of
8456 the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
8457 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
8458 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8459 <paramref name="tasks"/> array is null.</exception>
8460 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8461 <paramref name="continuationAction"/> argument is null.</exception>
8462 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8463 <paramref name="tasks"/> array contains a null value.</exception>
8464 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8465 <paramref name="tasks"/> array is empty.</exception>
8466 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
8467 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
8468 value.</exception>
8469 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8470 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8471 <remarks>
8472 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
8473 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
8474 will be executed, are illegal with ContinueWhenAny.
8475 </remarks>
8476 </member>
8477 <member name="M:System.Threading.Tasks.TaskFactory.ContinueWhenAny``1(System.Threading.Tasks.Task{``0}[],System.Action{System.Threading.Tasks.Task{``0}},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)">
8478 <summary>
8479 Creates a continuation <see cref="T:System.Threading.Tasks.Task">Task</see>
8480 that will be started upon the completion of any Task in the provided set.
8481 </summary>
8482 <typeparam name="TAntecedentResult">The type of the result of the antecedent <paramref name="tasks"/>.</typeparam>
8483 <param name="tasks">The array of tasks from which to continue when one task completes.</param>
8484 <param name="continuationAction">The action delegate to execute when one task in the
8485 <paramref name="tasks"/> array completes.</param>
8486 <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8487 that will be assigned to the new continuation task.</param>
8488 <param name="continuationOptions">The <see cref="T:System.Threading.Tasks.TaskContinuationOptions">
8489 TaskContinuationOptions</see> value that controls the behavior of
8490 the created continuation <see cref="T:System.Threading.Tasks.Task">Task</see>.</param>
8491 <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
8492 that is used to schedule the created continuation <see cref="T:System.Threading.Tasks.Task{TResult}"/>.</param>
8493 <returns>The new continuation <see cref="T:System.Threading.Tasks.Task"/>.</returns>
8494 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8495 <paramref name="tasks"/> array is null.</exception>
8496 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8497 <paramref name="continuationAction"/> argument is null.</exception>
8498 <exception cref="T:System.ArgumentNullException">The exception that is thrown when the
8499 <paramref name="scheduler"/> argument is null.</exception>
8500 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8501 <paramref name="tasks"/> array contains a null value.</exception>
8502 <exception cref="T:System.ArgumentException">The exception that is thrown when the
8503 <paramref name="tasks"/> array is empty.</exception>
8504 <exception cref="T:ArgumentOutOfRangeException">The exception that is thrown when the
8505 <paramref name="continuationOptions"/> argument specifies an invalid TaskContinuationOptions
8506 value.</exception>
8507 <exception cref="T:System.ObjectDisposedException">The exception that is thrown when one
8508 of the elements in the <paramref name="tasks"/> array has been disposed.</exception>
8509 <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken">CancellationToken</see>
8510 has already been disposed.
8511 </exception>
8512 <remarks>
8513 The NotOn* and OnlyOn* <see cref="T:System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>,
8514 which constrain for which <see cref="T:System.Threading.Tasks.TaskStatus">TaskStatus</see> states a continuation
8515 will be executed, are illegal with ContinueWhenAny.
8516 </remarks>
8517 </member>
8518 <member name="P:System.Threading.Tasks.TaskFactory.CancellationToken">
8519 <summary>
8520 Gets the default <see cref="T:System.Threading.CancellationToken">CancellationToken</see> of this
8521 TaskFactory.
8522 </summary>
8523 <remarks>
8524 This property returns the default <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken"/> that will be assigned to all
8525 tasks created by this factory unless another CancellationToken value is explicitly specified
8526 during the call to the factory methods.
8527 </remarks>
8528 </member>
8529 <member name="P:System.Threading.Tasks.TaskFactory.Scheduler">
8530 <summary>
8531 Gets the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> of this
8532 TaskFactory.
8533 </summary>
8534 <remarks>
8535 This property returns the default scheduler for this factory. It will be used to schedule all
8536 tasks unless another scheduler is explicitly specified during calls to this factory's methods.
8537 If null, <see cref="P:System.Threading.Tasks.TaskScheduler.Current">TaskScheduler.Current</see>
8538 will be used.
8539 </remarks>
8540 </member>
8541 <member name="P:System.Threading.Tasks.TaskFactory.CreationOptions">
8542 <summary>
8543 Gets the <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskCreationOptions
8544 </see> value of this TaskFactory.
8545 </summary>
8546 <remarks>
8547 This property returns the default creation options for this factory. They will be used to create all
8548 tasks unless other options are explicitly specified during calls to this factory's methods.
8549 </remarks>
8550 </member>
8551 <member name="P:System.Threading.Tasks.TaskFactory.ContinuationOptions">
8552 <summary>
8553 Gets the <see cref="T:System.Threading.Tasks.TaskCreationOptions">TaskContinuationOptions
8554 </see> value of this TaskFactory.
8555 </summary>
8556 <remarks>
8557 This property returns the default continuation options for this factory. They will be used to create
8558 all continuation tasks unless other options are explicitly specified during calls to this factory's methods.
8559 </remarks>
8560 </member>
8561 <member name="T:System.Threading.Tasks.TaskScheduler">
8562 <summary>
8563 Represents an abstract scheduler for tasks.
8564 </summary>
8565 <remarks>
8566 <para>
8567 <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> acts as the extension point for all
8568 pluggable scheduling logic. This includes mechanisms such as how to schedule a task for execution, and
8569 how scheduled tasks should be exposed to debuggers.
8570 </para>
8571 <para>
8572 All members of the abstract <see cref="T:System.Threading.Tasks.TaskScheduler"/> type are thread-safe
8573 and may be used from multiple threads concurrently.
8574 </para>
8575 </remarks>
8576 </member>
8577 <member name="M:System.Threading.Tasks.TaskScheduler.QueueTask(System.Threading.Tasks.Task)">
8578 <summary>
8579 Queues a <see cref="T:System.Threading.Tasks.Task">Task</see> to the scheduler.
8580 </summary>
8581 <remarks>
8582 <para>
8583 A class derived from <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
8584 implements this method to accept tasks being scheduled on the scheduler.
8585 A typical implementation would store the task in an internal data structure, which would
8586 be serviced by threads that would execute those tasks at some time in the future.
8587 </para>
8588 <para>
8589 This method is only meant to be called by the .NET Framework and
8590 should not be called directly by the derived class. This is necessary
8591 for maintaining the consistency of the system.
8592 </para>
8593 </remarks>
8594 <param name="task">The <see cref="T:System.Threading.Tasks.Task">Task</see> to be queued.</param>
8595 <exception cref="T:System.ArgumentNullException">The <paramref name="task"/> argument is null.</exception>
8596 </member>
8597 <member name="M:System.Threading.Tasks.TaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task,System.Boolean)">
8598 <summary>
8599 Determines whether the provided <see cref="T:System.Threading.Tasks.Task">Task</see>
8600 can be executed synchronously in this call, and if it can, executes it.
8601 </summary>
8602 <remarks>
8603 <para>
8604 A class derived from <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> implements this function to
8605 support inline execution of a task on a thread that initiates a wait on that task object. Inline
8606 execution is optional, and the request may be rejected by returning false. However, better
8607 scalability typically results the more tasks that can be inlined, and in fact a scheduler that
8608 inlines too little may be prone to deadlocks. A proper implementation should ensure that a
8609 request executing under the policies guaranteed by the scheduler can successfully inline. For
8610 example, if a scheduler uses a dedicated thread to execute tasks, any inlining requests from that
8611 thread should succeed.
8612 </para>
8613 <para>
8614 If a scheduler decides to perform the inline execution, it should do so by calling to the base
8615 TaskScheduler's
8616 <see cref="M:System.Threading.Tasks.TaskScheduler.TryExecuteTask(System.Threading.Tasks.Task)">TryExecuteTask</see> method with the provided task object, propagating
8617 the return value. It may also be appropriate for the scheduler to remove an inlined task from its
8618 internal data structures if it decides to honor the inlining request. Note, however, that under
8619 some circumstances a scheduler may be asked to inline a task that was not previously provided to
8620 it with the <see cref="M:System.Threading.Tasks.TaskScheduler.QueueTask(System.Threading.Tasks.Task)"/> method.
8621 </para>
8622 <para>
8623 The derived scheduler is responsible for making sure that the calling thread is suitable for
8624 executing the given task as far as its own scheduling and execution policies are concerned.
8625 </para>
8626 </remarks>
8627 <param name="task">The <see cref="T:System.Threading.Tasks.Task">Task</see> to be
8628 executed.</param>
8629 <param name="taskWasPreviouslyQueued">A Boolean denoting whether or not task has previously been
8630 queued. If this parameter is True, then the task may have been previously queued (scheduled); if
8631 False, then the task is known not to have been queued, and this call is being made in order to
8632 execute the task inline without queueing it.</param>
8633 <returns>A Boolean value indicating whether the task was executed inline.</returns>
8634 <exception cref="T:System.ArgumentNullException">The <paramref name="task"/> argument is
8635 null.</exception>
8636 <exception cref="T:System.InvalidOperationException">The <paramref name="task"/> was already
8637 executed.</exception>
8638 </member>
8639 <member name="M:System.Threading.Tasks.TaskScheduler.GetScheduledTasks">
8640 <summary>
8641 Generates an enumerable of <see cref="T:System.Threading.Tasks.Task">Task</see> instances
8642 currently queued to the scheduler waiting to be executed.
8643 </summary>
8644 <remarks>
8645 <para>
8646 A class derived from <see cref="T:System.Threading.Tasks.TaskScheduler"/> implements this method in order to support
8647 integration with debuggers. This method will only be invoked by the .NET Framework when the
8648 debugger requests access to the data. The enumerable returned will be traversed by debugging
8649 utilities to access the tasks currently queued to this scheduler, enabling the debugger to
8650 provide a representation of this information in the user interface.
8651 </para>
8652 <para>
8653 It is important to note that, when this method is called, all other threads in the process will
8654 be frozen. Therefore, it's important to avoid synchronization with other threads that may lead to
8655 blocking. If synchronization is necessary, the method should prefer to throw a <see cref="T:System.NotSupportedException"/>
8656 than to block, which could cause a debugger to experience delays. Additionally, this method and
8657 the enumerable returned must not modify any globally visible state.
8658 </para>
8659 <para>
8660 The returned enumerable should never be null. If there are currently no queued tasks, an empty
8661 enumerable should be returned instead.
8662 </para>
8663 <para>
8664 For developers implementing a custom debugger, this method shouldn't be called directly, but
8665 rather this functionality should be accessed through the internal wrapper method
8666 GetScheduledTasksForDebugger:
8667 <c>internal Task[] GetScheduledTasksForDebugger()</c>. This method returns an array of tasks,
8668 rather than an enumerable. In order to retrieve a list of active schedulers, a debugger may use
8669 another internal method: <c>internal static TaskScheduler[] GetTaskSchedulersForDebugger()</c>.
8670 This static method returns an array of all active TaskScheduler instances.
8671 GetScheduledTasksForDebugger then may be used on each of these scheduler instances to retrieve
8672 the list of scheduled tasks for each.
8673 </para>
8674 </remarks>
8675 <returns>An enumerable that allows traversal of tasks currently queued to this scheduler.
8676 </returns>
8677 <exception cref="T:System.NotSupportedException">
8678 This scheduler is unable to generate a list of queued tasks at this time.
8679 </exception>
8680 </member>
8681 <member name="M:System.Threading.Tasks.TaskScheduler.GetThreadStatics">
8682 <summary>
8683 Retrieves some thread static state that can be cached and passed to multiple
8684 TryRunInline calls, avoiding superflous TLS fetches.
8685 </summary>
8686 <returns>A bag of TLS state (or null if none exists).</returns>
8687 </member>
8688 <member name="M:System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task,System.Boolean,System.Object)">
8689 <summary>
8690 Attempts to execute the target task synchronously.
8691 </summary>
8692 <param name="task">The task to run.</param>
8693 <param name="taskWasPreviouslyQueued">True if the task may have been previously queued,
8694 false if the task was absolutely not previously queued.</param>
8695 <param name="threadStatics">The state retrieved from GetThreadStatics</param>
8696 <returns>True if it ran, false otherwise.</returns>
8697 </member>
8698 <member name="M:System.Threading.Tasks.TaskScheduler.TryDequeue(System.Threading.Tasks.Task)">
8699 <summary>
8700 Attempts to dequeue a <see cref="T:System.Threading.Tasks.Task">Task</see> that was previously queued to
8701 this scheduler.
8702 </summary>
8703 <param name="task">The <see cref="T:System.Threading.Tasks.Task">Task</see> to be dequeued.</param>
8704 <returns>A Boolean denoting whether the <paramref name="task"/> argument was successfully dequeued.</returns>
8705 <exception cref="T:System.ArgumentNullException">The <paramref name="task"/> argument is null.</exception>
8706 </member>
8707 <member name="M:System.Threading.Tasks.TaskScheduler.NotifyWorkItemProgress">
8708 <summary>
8709 Notifies the scheduler that a work item has made progress.
8710 </summary>
8711 </member>
8712 <member name="M:System.Threading.Tasks.TaskScheduler.#ctor">
8713 <summary>
8714 Initializes the <see cref="T:System.Threading.Tasks.TaskScheduler"/>.
8715 </summary>
8716 </member>
8717 <member name="M:System.Threading.Tasks.TaskScheduler.Finalize">
8718 <summary>
8719 Frees all resources associated with this scheduler.
8720 </summary>
8721 </member>
8722 <member name="M:System.Threading.Tasks.TaskScheduler.FromCurrentSynchronizationContext">
8723 <summary>
8724 Creates a <see cref="T:System.Threading.Tasks.TaskScheduler"/>
8725 associated with the current <see cref="T:System.Threading.SynchronizationContext"/>.
8726 </summary>
8727 <remarks>
8728 All <see cref="T:System.Threading.Tasks.Task">Task</see> instances queued to
8729 the returned scheduler will be executed through a call to the
8730 <see cref="M:System.Threading.SynchronizationContext.Post(System.Threading.SendOrPostCallback,System.Object)">Post</see> method
8731 on that context.
8732 </remarks>
8733 <returns>
8734 A <see cref="T:System.Threading.Tasks.TaskScheduler"/> associated with
8735 the current <see cref="T:System.Threading.SynchronizationContext">SynchronizationContext</see>, as
8736 determined by <see cref="P:System.Threading.SynchronizationContext.Current">SynchronizationContext.Current</see>.
8737 </returns>
8738 <exception cref="T:System.InvalidOperationException">
8739 The current SynchronizationContext may not be used as a TaskScheduler.
8740 </exception>
8741 </member>
8742 <member name="M:System.Threading.Tasks.TaskScheduler.TryExecuteTask(System.Threading.Tasks.Task)">
8743 <summary>
8744 Attempts to execute the provided <see cref="T:System.Threading.Tasks.Task">Task</see>
8745 on this scheduler.
8746 </summary>
8747 <remarks>
8748 <para>
8749 Scheduler implementations are provided with <see cref="T:System.Threading.Tasks.Task">Task</see>
8750 instances to be executed through either the <see cref="M:System.Threading.Tasks.TaskScheduler.QueueTask(System.Threading.Tasks.Task)"/> method or the
8751 <see cref="M:System.Threading.Tasks.TaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task,System.Boolean)"/> method. When the scheduler deems it appropriate to run the
8752 provided task, <see cref="M:System.Threading.Tasks.TaskScheduler.TryExecuteTask(System.Threading.Tasks.Task)"/> should be used to do so. TryExecuteTask handles all
8753 aspects of executing a task, including action invocation, exception handling, state management,
8754 and lifecycle control.
8755 </para>
8756 <para>
8757 <see cref="M:System.Threading.Tasks.TaskScheduler.TryExecuteTask(System.Threading.Tasks.Task)"/> must only be used for tasks provided to this scheduler by the .NET
8758 Framework infrastructure. It should not be used to execute arbitrary tasks obtained through
8759 custom mechanisms.
8760 </para>
8761 </remarks>
8762 <param name="task">
8763 A <see cref="T:System.Threading.Tasks.Task">Task</see> object to be executed.</param>
8764 <exception cref="T:System.InvalidOperationException">
8765 The <paramref name="task"/> is not associated with this scheduler.
8766 </exception>
8767 <returns>A Boolean that is true if <paramref name="task"/> was successfully executed, false if it
8768 was not. A common reason for execution failure is that the task had previously been executed or
8769 is in the process of being executed by another thread.</returns>
8770 </member>
8771 <member name="M:System.Threading.Tasks.TaskScheduler.GetScheduledTasksForDebugger">
8772 <summary>
8773 Provides an array of all queued <see cref="T:System.Threading.Tasks.Task">Task</see> instances
8774 for the debugger.
8775 </summary>
8776 <remarks>
8777 The returned array is populated through a call to <see cref="M:System.Threading.Tasks.TaskScheduler.GetScheduledTasks"/>.
8778 Note that this function is only meant to be invoked by a debugger remotely.
8779 It should not be called by any other codepaths.
8780 </remarks>
8781 <returns>An array of <see cref="T:System.Threading.Tasks.Task">Task</see> instances.</returns>
8782 <exception cref="T:System.NotSupportedException">
8783 This scheduler is unable to generate a list of queued tasks at this time.
8784 </exception>
8785 </member>
8786 <member name="M:System.Threading.Tasks.TaskScheduler.GetTaskSchedulersForDebugger">
8787 <summary>
8788 Provides an array of all active <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
8789 instances for the debugger.
8790 </summary>
8791 <remarks>
8792 This function is only meant to be invoked by a debugger remotely.
8793 It should not be called by any other codepaths.
8794 </remarks>
8795 <returns>An array of <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> instances.</returns>
8796 </member>
8797 <member name="M:System.Threading.Tasks.TaskScheduler.RegisterTaskScheduler(System.Threading.Tasks.TaskScheduler)">
8798 <summary>
8799 Registers a new TaskScheduler instance in the global collection of schedulers.
8800 </summary>
8801 </member>
8802 <member name="M:System.Threading.Tasks.TaskScheduler.UnregisterTaskScheduler(System.Threading.Tasks.TaskScheduler)">
8803 <summary>
8804 Removes a TaskScheduler instance from the global collection of schedulers.
8805 </summary>
8806 </member>
8807 <member name="P:System.Threading.Tasks.TaskScheduler.MaximumConcurrencyLevel">
8808 <summary>
8809 Indicates the maximum concurrency level this
8810 <see cref="T:System.Threading.Tasks.TaskScheduler"/> is able to support.
8811 </summary>
8812 </member>
8813 <member name="P:System.Threading.Tasks.TaskScheduler.RequiresAtomicStartTransition">
8814 <summary>
8815 Indicates whether this is a custom scheduler, in which case the safe code paths will be taken upon task entry
8816 using a CAS to transition from queued state to executing.
8817 </summary>
8818 </member>
8819 <member name="P:System.Threading.Tasks.TaskScheduler.Default">
8820 <summary>
8821 Gets the default <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see> instance.
8822 </summary>
8823 </member>
8824 <member name="P:System.Threading.Tasks.TaskScheduler.Current">
8825 <summary>
8826 Gets the <see cref="T:System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
8827 associated with the currently executing task.
8828 </summary>
8829 <remarks>
8830 When not called from within a task, <see cref="P:System.Threading.Tasks.TaskScheduler.Current"/> will return the <see cref="P:System.Threading.Tasks.TaskScheduler.Default"/> scheduler.
8831 </remarks>
8832 </member>
8833 <member name="P:System.Threading.Tasks.TaskScheduler.Id">
8834 <summary>
8835 Gets the unique ID for this <see cref="T:System.Threading.Tasks.TaskScheduler"/>.
8836 </summary>
8837 </member>
8838 <member name="E:System.Threading.Tasks.TaskScheduler.UnobservedTaskException">
8839 <summary>
8840 Occurs when a faulted <see cref="T:System.Threading.Tasks.Task"/>'s unobserved exception is about to trigger exception escalation
8841 policy, which, by default, would terminate the process.
8842 </summary>
8843 <remarks>
8844 This AppDomain-wide event provides a mechanism to prevent exception
8845 escalation policy (which, by default, terminates the process) from triggering.
8846 Each handler is passed a <see cref="T:System.Threading.Tasks.UnobservedTaskExceptionEventArgs"/>
8847 instance, which may be used to examine the exception and to mark it as observed.
8848 </remarks>
8849 </member>
8850 <member name="T:System.Threading.Tasks.TaskScheduler.SystemThreadingTasks_TaskSchedulerDebugView">
8851 <summary>
8852 Nested class that provides debugger view for TaskScheduler
8853 </summary>
8854 </member>
8855 <member name="T:System.Threading.Tasks.ThreadPoolTaskScheduler">
8856 <summary>Default thread pool scheduler.</summary>
8857 </member>
8858 <member name="T:System.Threading.Tasks.SynchronizationContextTaskScheduler">
8859 <summary>
8860 A TaskScheduler implementation that executes all tasks queued to it through a call to
8861 <see cref="M:System.Threading.SynchronizationContext.Post(System.Threading.SendOrPostCallback,System.Object)"/> on the <see cref="T:System.Threading.SynchronizationContext"/>
8862 that its associated with. The default constructor for this class binds to the current <see cref="T:System.Threading.SynchronizationContext"/>
8863 </summary>
8864 </member>
8865 <member name="M:System.Threading.Tasks.SynchronizationContextTaskScheduler.#ctor">
8866 <summary>
8867 Constructs a SynchronizationContextTaskScheduler associated with <see cref="T:System.Threading.SynchronizationContext.Current"/>
8868 </summary>
8869 <exception cref="T:System.InvalidOperationException">This constructor expects <see cref="T:System.Threading.SynchronizationContext.Current"/> to be set.</exception>
8870 </member>
8871 <member name="M:System.Threading.Tasks.SynchronizationContextTaskScheduler.QueueTask(System.Threading.Tasks.Task)">
8872 <summary>
8873 Implemetation of <see cref="T:System.Threading.Tasks.TaskScheduler.QueueTask"/> for this scheduler class.
8874
8875 Simply posts the tasks to be executed on the associated <see cref="T:System.Threading.SynchronizationContext"/>.
8876 </summary>
8877 <param name="task"></param>
8878 </member>
8879 <member name="M:System.Threading.Tasks.SynchronizationContextTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task,System.Boolean)">
8880 <summary>
8881 Implementation of <see cref="T:System.Threading.Tasks.TaskScheduler.TryExecuteTaskInline"/> for this scheduler class.
8882
8883 The task will be executed inline only if the call happens within
8884 the associated <see cref="T:System.Threading.SynchronizationContext"/>.
8885 </summary>
8886 <param name="task"></param>
8887 <param name="taskWasPreviouslyQueued"></param>
8888 </member>
8889 <member name="P:System.Threading.Tasks.SynchronizationContextTaskScheduler.MaximumConcurrencyLevel">
8890 <summary>
8891 Implementes the <see cref="T:System.Threading.Tasks.TaskScheduler.MaximumConcurrencyLevel"/> property for
8892 this scheduler class.
8893
8894 By default it returns 1, because a <see cref="T:System.Threading.SynchronizationContext"/> based
8895 scheduler only supports execution on a single thread.
8896 </summary>
8897 </member>
8898 <member name="T:System.Threading.Tasks.UnobservedTaskExceptionEventArgs">
8899 <summary>
8900 Provides data for the event that is raised when a faulted <see cref="T:System.Threading.Tasks.Task"/>'s
8901 exception goes unobserved.
8902 </summary>
8903 <remarks>
8904 The Exception property is used to examine the exception without marking it
8905 as observed, whereas the <see cref="M:System.Threading.Tasks.UnobservedTaskExceptionEventArgs.SetObserved"/> method is used to mark the exception
8906 as observed. Marking the exception as observed prevents it from triggering exception escalation policy
8907 which, by default, terminates the process.
8908 </remarks>
8909 </member>
8910 <member name="M:System.Threading.Tasks.UnobservedTaskExceptionEventArgs.#ctor(System.AggregateException)">
8911 <summary>
8912 Initializes a new instance of the <see cref="T:System.Threading.Tasks.UnobservedTaskExceptionEventArgs"/> class
8913 with the unobserved exception.
8914 </summary>
8915 <param name="exception">The Exception that has gone unobserved.</param>
8916 </member>
8917 <member name="M:System.Threading.Tasks.UnobservedTaskExceptionEventArgs.SetObserved">
8918 <summary>
8919 Marks the <see cref="P:System.Threading.Tasks.UnobservedTaskExceptionEventArgs.Exception"/> as "observed," thus preventing it
8920 from triggering exception escalation policy which, by default, terminates the process.
8921 </summary>
8922 </member>
8923 <member name="P:System.Threading.Tasks.UnobservedTaskExceptionEventArgs.Observed">
8924 <summary>
8925 Gets whether this exception has been marked as "observed."
8926 </summary>
8927 </member>
8928 <member name="P:System.Threading.Tasks.UnobservedTaskExceptionEventArgs.Exception">
8929 <summary>
8930 The Exception that went unobserved.
8931 </summary>
8932 </member>
8933 <member name="T:System.Threading.Tasks.TaskSchedulerException">
8934 <summary>
8935 Represents an exception used to communicate an invalid operation by a
8936 <see cref="T:System.Threading.Tasks.TaskScheduler"/>.
8937 </summary>
8938 </member>
8939 <member name="M:System.Threading.Tasks.TaskSchedulerException.#ctor">
8940 <summary>
8941 Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskSchedulerException"/> class.
8942 </summary>
8943 </member>
8944 <member name="M:System.Threading.Tasks.TaskSchedulerException.#ctor(System.String)">
8945 <summary>
8946 Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskSchedulerException"/>
8947 class with a specified error message.
8948 </summary>
8949 <param name="message">The error message that explains the reason for the exception.</param>
8950 </member>
8951 <member name="M:System.Threading.Tasks.TaskSchedulerException.#ctor(System.Exception)">
8952 <summary>
8953 Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskSchedulerException"/>
8954 class using the default error message and a reference to the inner exception that is the cause of
8955 this exception.
8956 </summary>
8957 <param name="innerException">The exception that is the cause of the current exception.</param>
8958 </member>
8959 <member name="M:System.Threading.Tasks.TaskSchedulerException.#ctor(System.String,System.Exception)">
8960 <summary>
8961 Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskSchedulerException"/>
8962 class with a specified error message and a reference to the inner exception that is the cause of
8963 this exception.
8964 </summary>
8965 <param name="message">The error message that explains the reason for the exception.</param>
8966 <param name="innerException">The exception that is the cause of the current exception.</param>
8967 </member>
8968 </members>
8969 </doc>