﻿<?xml version="1.0" encoding="utf-8"?><Type Name="Task" FullName="System.Threading.Tasks.Task"><TypeSignature Language="C#" Value="public class Task : IAsyncResult, IDisposable" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit Task extends System.Object implements class System.IAsyncResult, class System.IDisposable" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Object</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.IAsyncResult</InterfaceName></Interface><Interface><InterfaceName>System.IDisposable</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>System.Diagnostics.DebuggerDisplay("Id = {Id}, Status = {Status}")</AttributeName></Attribute><Attribute><AttributeName>System.Diagnostics.DebuggerTypeProxy(typeof(System.Threading.Tasks.TaskDebuggerView))</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para><see cref="T:System.Threading.Tasks.Task" /> instances may be created in a variety of ways. The most common approach is by using the task’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 purposes. For example, to create a <see cref="T:System.Threading.Tasks.Task" /> that runs an action, the factory's <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action)" /> method may be used: </para><code>// C#
var t = Task.Factory.StartNew(() =&gt; DoAction());

' Visual Basic
 Dim t = Task.Factory.StartNew(Function() DoAction())</code><para>For more complete examples, see <format type="text/html"><a href="458b5e69-5210-45e5-bc44-3888f86abd6f">Task Parallelism (Task Parallel Library)</a></format>.</para><para>The <see cref="T:System.Threading.Tasks.Task" /> class also provides constructors that initialize the task but that do not schedule it for execution. For performance reasons, the task factory’s <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action)" /> method should be the preferred mechanism for creating and scheduling computational tasks, but for scenarios where creation and scheduling must be separated, the constructors may be used, and the task's <see cref="M:System.Threading.Tasks.Task.Start" /> method may then be used to schedule the task for execution at a later time. </para><para>For operations that return values, the <see cref="T:System.Threading.Tasks.Task`1" /> class should be used. </para><format type="text/html"><h2>For Debugger Developers</h2></format><para>For developers implementing custom debuggers, several internal and private members of task may be useful (these may change from release to release). The m_taskId field serves as the backing store for the <see cref="P:System.Threading.Tasks.Task.Id" /> property, however accessing this field directly from a debugger may be more efficient than accessing the same value through the property's getter method (the s_taskIdCounter counter is used to retrieve the next available ID for a task). Similarly, the m_stateFlags field stores information about the current lifecycle stage of the task, information also accessible through the <see cref="P:System.Threading.Tasks.Task.Status" /> property. The m_action field stores a reference to the task's delegate, and the m_stateObject field stores the async state passed to the task by the developer. Finally, for debuggers that parse stack frames, the InternalWait method serves a potential marker for when a task is entering a wait operation. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents an asynchronous operation.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Task (Action action);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Action action) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="action" Type="System.Action" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Rather than calling this constructor, the most common way to instantiate a <see cref="T:System.Threading.Tasks.Task" /> object and launch a task is by calling the static <see cref="M:System.Threading.Tasks.Task.Run(System.Action)" /> and <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action)" /> methods. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new <see cref="T:System.Threading.Tasks.Task" /> with the specified action.</para></summary><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The delegate that represents the code to execute in the task.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Task (Action action, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Action action, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="action" Type="System.Action" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Rather than calling this constructor, the most common way to instantiate a <see cref="T:System.Threading.Tasks.Task" /> object and launch a task is by calling the static <see cref="M:System.Threading.Tasks.Task.Run(System.Action,System.Threading.CancellationToken)" /> and <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action,System.Threading.CancellationToken)" /> methods. </para><para>For more information, see <format type="text/html"><a href="458b5e69-5210-45e5-bc44-3888f86abd6f">Task Parallelism (Task Parallel Library)</a></format> and <format type="text/html"><a href="eea11fe5-d8b0-4314-bb5d-8a58166fb1c3">Cancellation</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new <see cref="T:System.Threading.Tasks.Task" /> with the specified action and <see cref="T:System.Threading.CancellationToken" />.</para></summary><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The delegate that represents the code to execute in the task.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.CancellationToken" /> that the new  task will observe.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Task (Action action, System.Threading.Tasks.TaskCreationOptions creationOptions);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Action action, valuetype System.Threading.Tasks.TaskCreationOptions creationOptions) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="action" Type="System.Action" /><Parameter Name="creationOptions" Type="System.Threading.Tasks.TaskCreationOptions" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Rather than calling this constructor, the most common way to instantiate a <see cref="T:System.Threading.Tasks.Task" /> object and launch a task is by calling the static <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action,System.Threading.Tasks.TaskCreationOptions)" /> method. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new <see cref="T:System.Threading.Tasks.Task" /> with the specified action and creation options.</para></summary><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The delegate that represents the code to execute in the task.</param><param name="creationOptions"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> used to customize the task's behavior. </param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Task (Action&lt;object&gt; action, object state);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Action`1&lt;object&gt; action, object state) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="action" Type="System.Action&lt;System.Object&gt;" /><Parameter Name="state" Type="System.Object" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Rather than calling this constructor, the most common way to instantiate a <see cref="T:System.Threading.Tasks.Task" /> object and launch a task is by calling the static <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action{System.Object},System.Object)" /> method. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new <see cref="T:System.Threading.Tasks.Task" /> with the specified action and state.</para></summary><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The delegate that represents the code to execute in the task.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the action.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Task (Action action, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskCreationOptions creationOptions);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Action action, valuetype System.Threading.CancellationToken cancellationToken, valuetype System.Threading.Tasks.TaskCreationOptions creationOptions) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="action" Type="System.Action" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /><Parameter Name="creationOptions" Type="System.Threading.Tasks.TaskCreationOptions" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Rather than calling this constructor, the most common way to instantiate a <see cref="T:System.Threading.Tasks.Task" /> object and launch a task is by calling the static <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)" /> method. </para><para>For more information, see <format type="text/html"><a href="458b5e69-5210-45e5-bc44-3888f86abd6f">Task Parallelism (Task Parallel Library)</a></format> and <format type="text/html"><a href="3ecf1ea9-e399-4a6a-a0d6-8475f48dcb28">Task Cancellation</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new <see cref="T:System.Threading.Tasks.Task" /> with the specified action and creation options.</para></summary><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The delegate that represents the code to execute in the task.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that the new task will observe.</param><param name="creationOptions"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> used to customize the task's behavior.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Task (Action&lt;object&gt; action, object state, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Action`1&lt;object&gt; action, object state, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="action" Type="System.Action&lt;System.Object&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Rather than calling this constructor, the most common way to instantiate a <see cref="T:System.Threading.Tasks.Task" /> object and launch a task is by calling the static <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action{System.Object},System.Object,System.Threading.CancellationToken)" /> method. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new <see cref="T:System.Threading.Tasks.Task" /> with the specified action, state, and options.</para></summary><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The delegate that represents the code to execute in the task.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the action.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that that the new task will observe.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Task (Action&lt;object&gt; action, object state, System.Threading.Tasks.TaskCreationOptions creationOptions);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Action`1&lt;object&gt; action, object state, valuetype System.Threading.Tasks.TaskCreationOptions creationOptions) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="action" Type="System.Action&lt;System.Object&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="creationOptions" Type="System.Threading.Tasks.TaskCreationOptions" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Rather than calling this constructor, the most common way to instantiate a <see cref="T:System.Threading.Tasks.Task" /> object and launch a task is by calling the static <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action{System.Object},System.Object,System.Threading.Tasks.TaskCreationOptions)" /> method. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new <see cref="T:System.Threading.Tasks.Task" /> with the specified action, state, and options.</para></summary><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The delegate that represents the code to execute in the task.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the action.</param><param name="creationOptions"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> used to customize the task's behavior.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Task (Action&lt;object&gt; action, object state, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskCreationOptions creationOptions);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Action`1&lt;object&gt; action, object state, valuetype System.Threading.CancellationToken cancellationToken, valuetype System.Threading.Tasks.TaskCreationOptions creationOptions) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="action" Type="System.Action&lt;System.Object&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /><Parameter Name="creationOptions" Type="System.Threading.Tasks.TaskCreationOptions" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Rather than calling this constructor, the most common way to instantiate a <see cref="T:System.Threading.Tasks.Task" /> object and launch a task is by calling the static <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action{System.Object},System.Object,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler)" /> method. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new <see cref="T:System.Threading.Tasks.Task" /> with the specified action, state, and options.</para></summary><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The delegate that represents the code to execute in the task.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the action.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that that the new task will observe..</param><param name="creationOptions"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> used to customize the task's behavior.</param></Docs></Member><Member MemberName="AsyncState"><MemberSignature Language="C#" Value="public object AsyncState { get; }" /><MemberSignature Language="ILAsm" Value=".property instance object AsyncState" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Object</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Cast the object back to the original type to retrieve its data.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the state object supplied when the <see cref="T:System.Threading.Tasks.Task" /> was created, or null if none was supplied.</para></summary></Docs></Member><Member MemberName="ConfigureAwait"><MemberSignature Language="C#" Value="public System.Runtime.CompilerServices.ConfiguredTaskAwaitable ConfigureAwait (bool continueOnCapturedContext);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance valuetype System.Runtime.CompilerServices.ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Runtime.CompilerServices.ConfiguredTaskAwaitable</ReturnType></ReturnValue><Parameters><Parameter Name="continueOnCapturedContext" Type="System.Boolean" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Configures an awaiter used to await this <see cref="T:System.Threading.Tasks.Task" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An object used to await this task.</para></returns><param name="continueOnCapturedContext"><attribution license="cc4" from="Microsoft" modified="false" />true to attempt to marshal the continuation back to the original context captured; otherwise, false.</param></Docs></Member><Member MemberName="ContinueWith"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ContinueWith (Action&lt;System.Threading.Tasks.Task&gt; continuationAction);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ContinueWith(class System.Action`1&lt;class System.Threading.Tasks.Task&gt; continuationAction) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="continuationAction" Type="System.Action&lt;System.Threading.Tasks.Task&gt;" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task" /> will not be scheduled for execution until the current task has completed, whether it completes due to running to completion successfully, faulting due to an unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes asynchronously when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</para></returns><param name="continuationAction"><attribution license="cc4" from="Microsoft" modified="false" />An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task as an argument.</param></Docs></Member><Member MemberName="ContinueWith"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ContinueWith (Action&lt;System.Threading.Tasks.Task,object&gt; continuationAction, object state);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ContinueWith(class System.Action`2&lt;class System.Threading.Tasks.Task, object&gt; continuationAction, object state) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="continuationAction" Type="System.Action&lt;System.Threading.Tasks.Task,System.Object&gt;" /><Parameter Name="state" Type="System.Object" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task" /> will not be scheduled for execution until the current task has completed, whether it completes due to running to completion successfully, faulting due to an unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</para></returns><param name="continuationAction"><attribution license="cc4" from="Microsoft" modified="false" />An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task as and the caller-supplied state object as arguments.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the continuation action.</param></Docs></Member><Member MemberName="ContinueWith"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ContinueWith (Action&lt;System.Threading.Tasks.Task&gt; continuationAction, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ContinueWith(class System.Action`1&lt;class System.Threading.Tasks.Task&gt; continuationAction, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="continuationAction" Type="System.Action&lt;System.Threading.Tasks.Task&gt;" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task" /> will not be scheduled for execution until the current task has completed, whether it completes due to running to completion successfully, faulting due to an unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes asynchronously when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</para></returns><param name="continuationAction"><attribution license="cc4" from="Microsoft" modified="false" />An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task as an argument.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new continuation task.</param></Docs></Member><Member MemberName="ContinueWith"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ContinueWith (Action&lt;System.Threading.Tasks.Task&gt; continuationAction, System.Threading.Tasks.TaskContinuationOptions continuationOptions);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ContinueWith(class System.Action`1&lt;class System.Threading.Tasks.Task&gt; continuationAction, valuetype System.Threading.Tasks.TaskContinuationOptions continuationOptions) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="continuationAction" Type="System.Action&lt;System.Threading.Tasks.Task&gt;" /><Parameter Name="continuationOptions" Type="System.Threading.Tasks.TaskContinuationOptions" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task" /> will not be scheduled for execution until the current task has completed. If the continuation criteria specified through the <paramref name="continuationOptions" /> parameter are not met, the continuation task will be canceled instead of scheduled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes according to the specified <see cref="T:System.Threading.Tasks.TaskContinuationOptions" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</para></returns><param name="continuationAction"><attribution license="cc4" from="Microsoft" modified="false" />An action to run according to the specified <paramref name="continuationOptions" />. When run, the delegate will be passed the completed task as an argument.</param><param name="continuationOptions"><attribution license="cc4" from="Microsoft" modified="false" />Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param></Docs></Member><Member MemberName="ContinueWith"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ContinueWith (Action&lt;System.Threading.Tasks.Task&gt; continuationAction, System.Threading.Tasks.TaskScheduler scheduler);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ContinueWith(class System.Action`1&lt;class System.Threading.Tasks.Task&gt; continuationAction, class System.Threading.Tasks.TaskScheduler scheduler) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="continuationAction" Type="System.Action&lt;System.Threading.Tasks.Task&gt;" /><Parameter Name="scheduler" Type="System.Threading.Tasks.TaskScheduler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task" /> will not be scheduled for execution until the current task has completed, whether it completes due to running to completion successfully, faulting due to an unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes asynchronously when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</para></returns><param name="continuationAction"><attribution license="cc4" from="Microsoft" modified="false" />An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task as an argument.</param><param name="scheduler"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param></Docs></Member><Member MemberName="ContinueWith"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ContinueWith (Action&lt;System.Threading.Tasks.Task,object&gt; continuationAction, object state, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ContinueWith(class System.Action`2&lt;class System.Threading.Tasks.Task, object&gt; continuationAction, object state, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="continuationAction" Type="System.Action&lt;System.Threading.Tasks.Task,System.Object&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task" /> will not be scheduled for execution until the current task has  completed, whether it completes due to running to completion successfully, faulting due to an  unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</para></returns><param name="continuationAction"><attribution license="cc4" from="Microsoft" modified="false" />An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task and the caller-supplied state object as arguments.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the continuation action.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.CancellationToken" /> that will be assigned to the new continuation task.</param></Docs></Member><Member MemberName="ContinueWith"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ContinueWith (Action&lt;System.Threading.Tasks.Task,object&gt; continuationAction, object state, System.Threading.Tasks.TaskContinuationOptions continuationOptions);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ContinueWith(class System.Action`2&lt;class System.Threading.Tasks.Task, object&gt; continuationAction, object state, valuetype System.Threading.Tasks.TaskContinuationOptions continuationOptions) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="continuationAction" Type="System.Action&lt;System.Threading.Tasks.Task,System.Object&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="continuationOptions" Type="System.Threading.Tasks.TaskContinuationOptions" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task" /> will not be scheduled for execution until the current task has completed. If the continuation criteria specified through the <paramref name="continuationOptions" /> parameter are not met, the continuation task will be canceled instead of scheduled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</para></returns><param name="continuationAction"><attribution license="cc4" from="Microsoft" modified="false" />An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be  passed the completed task and the caller-supplied state object as arguments.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the continuation action.</param><param name="continuationOptions"><attribution license="cc4" from="Microsoft" modified="false" />Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param></Docs></Member><Member MemberName="ContinueWith"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ContinueWith (Action&lt;System.Threading.Tasks.Task,object&gt; continuationAction, object state, System.Threading.Tasks.TaskScheduler scheduler);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ContinueWith(class System.Action`2&lt;class System.Threading.Tasks.Task, object&gt; continuationAction, object state, class System.Threading.Tasks.TaskScheduler scheduler) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="continuationAction" Type="System.Action&lt;System.Threading.Tasks.Task,System.Object&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="scheduler" Type="System.Threading.Tasks.TaskScheduler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task" /> will not be scheduled for execution until the current task has  completed, whether it completes due to running to completion successfully, faulting due to an  unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</para></returns><param name="continuationAction"><attribution license="cc4" from="Microsoft" modified="false" />An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes.  When run, the delegate will be  passed the completed task and the caller-supplied state object as arguments.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the continuation action.</param><param name="scheduler"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param></Docs></Member><Member MemberName="ContinueWith"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ContinueWith (Action&lt;System.Threading.Tasks.Task&gt; continuationAction, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskContinuationOptions continuationOptions, System.Threading.Tasks.TaskScheduler scheduler);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ContinueWith(class System.Action`1&lt;class System.Threading.Tasks.Task&gt; continuationAction, valuetype System.Threading.CancellationToken cancellationToken, valuetype System.Threading.Tasks.TaskContinuationOptions continuationOptions, class System.Threading.Tasks.TaskScheduler scheduler) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="continuationAction" Type="System.Action&lt;System.Threading.Tasks.Task&gt;" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /><Parameter Name="continuationOptions" Type="System.Threading.Tasks.TaskContinuationOptions" /><Parameter Name="scheduler" Type="System.Threading.Tasks.TaskScheduler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task" /> will not be scheduled for execution until the current task has completed. If the criteria specified through the <paramref name="continuationOptions" /> parameter are not met, the continuation task will be canceled instead of scheduled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes according to the specified <see cref="T:System.Threading.Tasks.TaskContinuationOptions" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</para></returns><param name="continuationAction"><attribution license="cc4" from="Microsoft" modified="false" />An action to run according to the specified <paramref name="continuationOptions" />. When run, the delegate will be passed the completed task as an argument.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new continuation task.</param><param name="continuationOptions"><attribution license="cc4" from="Microsoft" modified="false" />Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param><param name="scheduler"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param></Docs></Member><Member MemberName="ContinueWith"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ContinueWith (Action&lt;System.Threading.Tasks.Task,object&gt; continuationAction, object state, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskContinuationOptions continuationOptions, System.Threading.Tasks.TaskScheduler scheduler);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ContinueWith(class System.Action`2&lt;class System.Threading.Tasks.Task, object&gt; continuationAction, object state, valuetype System.Threading.CancellationToken cancellationToken, valuetype System.Threading.Tasks.TaskContinuationOptions continuationOptions, class System.Threading.Tasks.TaskScheduler scheduler) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="continuationAction" Type="System.Action&lt;System.Threading.Tasks.Task,System.Object&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /><Parameter Name="continuationOptions" Type="System.Threading.Tasks.TaskContinuationOptions" /><Parameter Name="scheduler" Type="System.Threading.Tasks.TaskScheduler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task" /> will not be scheduled for execution until the current task has  completed. If the criteria specified through the <paramref name="continuationOptions" /> parameter  are not met, the continuation task will be canceled instead of scheduled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</para></returns><param name="continuationAction"><attribution license="cc4" from="Microsoft" modified="false" />An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be  passed the completed task and the caller-supplied state object as arguments.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the continuation action.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.CancellationToken" /> that will be assigned to the new continuation task.</param><param name="continuationOptions"><attribution license="cc4" from="Microsoft" modified="false" />Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param><param name="scheduler"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its  execution.</param></Docs></Member><Member MemberName="ContinueWith&lt;TResult&gt;"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;TResult&gt; ContinueWith&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task,TResult&gt; continuationFunction);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1&lt;!!TResult&gt; ContinueWith&lt;TResult&gt;(class System.Func`2&lt;class System.Threading.Tasks.Task, !!TResult&gt; continuationFunction) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="continuationFunction" Type="System.Func&lt;System.Threading.Tasks.Task,TResult&gt;" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task`1" /> will not be scheduled for execution until the current task has completed, whether it completes due to running to completion successfully, faulting due to an unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes asynchronously when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</para></returns><param name="continuationFunction"><attribution license="cc4" from="Microsoft" modified="false" />A function to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task as an argument.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" /> The type of the result produced by the continuation.</typeparam></Docs></Member><Member MemberName="ContinueWith&lt;TResult&gt;"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;TResult&gt; ContinueWith&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task,object,TResult&gt; continuationFunction, object state);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1&lt;!!TResult&gt; ContinueWith&lt;TResult&gt;(class System.Func`3&lt;class System.Threading.Tasks.Task, object, !!TResult&gt; continuationFunction, object state) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="continuationFunction" Type="System.Func&lt;System.Threading.Tasks.Task,System.Object,TResult&gt;" /><Parameter Name="state" Type="System.Object" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task`1" /> will not be scheduled for execution until the current task has  completed, whether it completes due to running to completion successfully, faulting due to an  unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</para></returns><param name="continuationFunction"><attribution license="cc4" from="Microsoft" modified="false" />A function to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be  passed the completed task and the caller-supplied state object as arguments.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the continuation function.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the result produced by the continuation.</typeparam></Docs></Member><Member MemberName="ContinueWith&lt;TResult&gt;"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;TResult&gt; ContinueWith&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task,TResult&gt; continuationFunction, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1&lt;!!TResult&gt; ContinueWith&lt;TResult&gt;(class System.Func`2&lt;class System.Threading.Tasks.Task, !!TResult&gt; continuationFunction, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="continuationFunction" Type="System.Func&lt;System.Threading.Tasks.Task,TResult&gt;" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task`1" /> will not be scheduled for execution until the current task has completed, whether it completes due to running to completion successfully, faulting due to an unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes asynchronously when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</para></returns><param name="continuationFunction"><attribution license="cc4" from="Microsoft" modified="false" />A function to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task as an argument.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new continuation task.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" /> The type of the result produced by the continuation.</typeparam></Docs></Member><Member MemberName="ContinueWith&lt;TResult&gt;"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;TResult&gt; ContinueWith&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task,TResult&gt; continuationFunction, System.Threading.Tasks.TaskContinuationOptions continuationOptions);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1&lt;!!TResult&gt; ContinueWith&lt;TResult&gt;(class System.Func`2&lt;class System.Threading.Tasks.Task, !!TResult&gt; continuationFunction, valuetype System.Threading.Tasks.TaskContinuationOptions continuationOptions) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="continuationFunction" Type="System.Func&lt;System.Threading.Tasks.Task,TResult&gt;" /><Parameter Name="continuationOptions" Type="System.Threading.Tasks.TaskContinuationOptions" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task`1" /> will not be scheduled for execution until the current task has completed. If the continuation criteria specified through the <paramref name="continuationOptions" /> parameter are not met, the continuation task will be canceled instead of scheduled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes according to the condition specified in <paramref name="continuationOptions" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</para></returns><param name="continuationFunction"><attribution license="cc4" from="Microsoft" modified="false" />A function to run according to the condition specified in <paramref name="continuationOptions" />. When run, the delegate will be passed the completed task as an argument.</param><param name="continuationOptions"><attribution license="cc4" from="Microsoft" modified="false" />Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" /> The type of the result produced by the continuation.</typeparam></Docs></Member><Member MemberName="ContinueWith&lt;TResult&gt;"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;TResult&gt; ContinueWith&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task,TResult&gt; continuationFunction, System.Threading.Tasks.TaskScheduler scheduler);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1&lt;!!TResult&gt; ContinueWith&lt;TResult&gt;(class System.Func`2&lt;class System.Threading.Tasks.Task, !!TResult&gt; continuationFunction, class System.Threading.Tasks.TaskScheduler scheduler) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="continuationFunction" Type="System.Func&lt;System.Threading.Tasks.Task,TResult&gt;" /><Parameter Name="scheduler" Type="System.Threading.Tasks.TaskScheduler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task`1" /> will not be scheduled for execution until the current task has completed, whether it completes due to running to completion successfully, faulting due to an unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes asynchronously when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</para></returns><param name="continuationFunction"><attribution license="cc4" from="Microsoft" modified="false" />A function to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task as an argument.</param><param name="scheduler"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" /> The type of the result produced by the continuation.</typeparam></Docs></Member><Member MemberName="ContinueWith&lt;TResult&gt;"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;TResult&gt; ContinueWith&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task,object,TResult&gt; continuationFunction, object state, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1&lt;!!TResult&gt; ContinueWith&lt;TResult&gt;(class System.Func`3&lt;class System.Threading.Tasks.Task, object, !!TResult&gt; continuationFunction, object state, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="continuationFunction" Type="System.Func&lt;System.Threading.Tasks.Task,System.Object,TResult&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task`1" /> will not be scheduled for execution until the current task has  completed, whether it completes due to running to completion successfully, faulting due to an  unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</para></returns><param name="continuationFunction"><attribution license="cc4" from="Microsoft" modified="false" />A function to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be  passed the completed task and the caller-supplied state object as arguments.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the continuation function.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.CancellationToken" /> that will be assigned to the new continuation task.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the result produced by the continuation.</typeparam></Docs></Member><Member MemberName="ContinueWith&lt;TResult&gt;"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;TResult&gt; ContinueWith&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task,object,TResult&gt; continuationFunction, object state, System.Threading.Tasks.TaskContinuationOptions continuationOptions);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1&lt;!!TResult&gt; ContinueWith&lt;TResult&gt;(class System.Func`3&lt;class System.Threading.Tasks.Task, object, !!TResult&gt; continuationFunction, object state, valuetype System.Threading.Tasks.TaskContinuationOptions continuationOptions) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="continuationFunction" Type="System.Func&lt;System.Threading.Tasks.Task,System.Object,TResult&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="continuationOptions" Type="System.Threading.Tasks.TaskContinuationOptions" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task`1" /> will not be scheduled for execution until the current task has completed. If the continuation criteria specified through the <paramref name="continuationOptions" /> parameter are not met, the continuation task will be canceled instead of scheduled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</para></returns><param name="continuationFunction"><attribution license="cc4" from="Microsoft" modified="false" />A function to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be  passed the completed task and the caller-supplied state object as arguments.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the continuation function.</param><param name="continuationOptions"><attribution license="cc4" from="Microsoft" modified="false" />Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the result produced by the continuation.</typeparam></Docs></Member><Member MemberName="ContinueWith&lt;TResult&gt;"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;TResult&gt; ContinueWith&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task,object,TResult&gt; continuationFunction, object state, System.Threading.Tasks.TaskScheduler scheduler);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1&lt;!!TResult&gt; ContinueWith&lt;TResult&gt;(class System.Func`3&lt;class System.Threading.Tasks.Task, object, !!TResult&gt; continuationFunction, object state, class System.Threading.Tasks.TaskScheduler scheduler) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="continuationFunction" Type="System.Func&lt;System.Threading.Tasks.Task,System.Object,TResult&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="scheduler" Type="System.Threading.Tasks.TaskScheduler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task`1" /> will not be scheduled for execution until the current task has  completed, whether it completes due to running to completion successfully, faulting due to an  unhandled exception, or exiting out early due to being canceled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</para></returns><param name="continuationFunction"><attribution license="cc4" from="Microsoft" modified="false" />A function to run when the <see cref="T:System.Threading.Tasks.Task" /> completes.  When run, the delegate will be  passed the completed task and the caller-supplied state object as arguments.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the continuation function.</param><param name="scheduler"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the result produced by the continuation.</typeparam></Docs></Member><Member MemberName="ContinueWith&lt;TResult&gt;"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;TResult&gt; ContinueWith&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task,TResult&gt; continuationFunction, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskContinuationOptions continuationOptions, System.Threading.Tasks.TaskScheduler scheduler);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1&lt;!!TResult&gt; ContinueWith&lt;TResult&gt;(class System.Func`2&lt;class System.Threading.Tasks.Task, !!TResult&gt; continuationFunction, valuetype System.Threading.CancellationToken cancellationToken, valuetype System.Threading.Tasks.TaskContinuationOptions continuationOptions, class System.Threading.Tasks.TaskScheduler scheduler) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="continuationFunction" Type="System.Func&lt;System.Threading.Tasks.Task,TResult&gt;" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /><Parameter Name="continuationOptions" Type="System.Threading.Tasks.TaskContinuationOptions" /><Parameter Name="scheduler" Type="System.Threading.Tasks.TaskScheduler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task`1" /> will not be scheduled for execution until the current task has completed. If the criteria specified through the <paramref name="continuationOptions" /> parameter are not met, the continuation task will be canceled instead of scheduled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes according to the condition specified in <paramref name="continuationOptions" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</para></returns><param name="continuationFunction"><attribution license="cc4" from="Microsoft" modified="false" />A function to run according to the specified <paramref name="continuationOptions." /> When run, the delegate will be passed the completed task as an argument.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new continuation task.</param><param name="continuationOptions"><attribution license="cc4" from="Microsoft" modified="false" />Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param><param name="scheduler"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" /> The type of the result produced by the continuation.</typeparam></Docs></Member><Member MemberName="ContinueWith&lt;TResult&gt;"><MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;TResult&gt; ContinueWith&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task,object,TResult&gt; continuationFunction, object state, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskContinuationOptions continuationOptions, System.Threading.Tasks.TaskScheduler scheduler);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1&lt;!!TResult&gt; ContinueWith&lt;TResult&gt;(class System.Func`3&lt;class System.Threading.Tasks.Task, object, !!TResult&gt; continuationFunction, object state, valuetype System.Threading.CancellationToken cancellationToken, valuetype System.Threading.Tasks.TaskContinuationOptions continuationOptions, class System.Threading.Tasks.TaskScheduler scheduler) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="continuationFunction" Type="System.Func&lt;System.Threading.Tasks.Task,System.Object,TResult&gt;" /><Parameter Name="state" Type="System.Object" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /><Parameter Name="continuationOptions" Type="System.Threading.Tasks.TaskContinuationOptions" /><Parameter Name="scheduler" Type="System.Threading.Tasks.TaskScheduler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Threading.Tasks.Task`1" /> will not be scheduled for execution until the current task has  completed. If the criteria specified through the <paramref name="continuationOptions" /> parameter  are not met, the continuation task will be canceled instead of scheduled.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a continuation that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</para></returns><param name="continuationFunction"><attribution license="cc4" from="Microsoft" modified="false" />A function to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be  passed the completed task and the caller-supplied state object as arguments.</param><param name="state"><attribution license="cc4" from="Microsoft" modified="false" />An object representing data to be used by the continuation function.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.CancellationToken" /> that will be assigned to the new continuation task.</param><param name="continuationOptions"><attribution license="cc4" from="Microsoft" modified="false" />Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param><param name="scheduler"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its  execution.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the result produced by the continuation.</typeparam></Docs></Member><Member MemberName="CreationOptions"><MemberSignature Language="C#" Value="public System.Threading.Tasks.TaskCreationOptions CreationOptions { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.Threading.Tasks.TaskCreationOptions CreationOptions" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.TaskCreationOptions</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> used to create this task.</para></summary></Docs></Member><Member MemberName="CurrentId"><MemberSignature Language="C#" Value="public static Nullable&lt;int&gt; CurrentId { get; }" /><MemberSignature Language="ILAsm" Value=".property valuetype System.Nullable`1&lt;int32&gt; CurrentId" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Nullable&lt;System.Int32&gt;</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the unique ID of the currently executing <see cref="T:System.Threading.Tasks.Task" />.</para></summary></Docs></Member><Member MemberName="Delay"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task Delay (int millisecondsDelay);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task Delay(int32 millisecondsDelay) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="millisecondsDelay" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>After the specified time delay, the task is completed in RanToCompletion state.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete after a time delay.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the time delay</para></returns><param name="millisecondsDelay"><attribution license="cc4" from="Microsoft" modified="false" />The number of milliseconds to wait before completing the returned task</param></Docs></Member><Member MemberName="Delay"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task Delay (TimeSpan delay);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task Delay(valuetype System.TimeSpan delay) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="delay" Type="System.TimeSpan" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>After the specified time delay, the task is completed in <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" /> state.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete after a time delay.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the time delay</para></returns><param name="delay"><attribution license="cc4" from="Microsoft" modified="false" />The time span to wait before completing the returned task</param></Docs></Member><Member MemberName="Delay"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task Delay (int millisecondsDelay, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task Delay(int32 millisecondsDelay, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="millisecondsDelay" Type="System.Int32" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If the cancellation token is signaled before the specified time delay, then the task is completed in  Canceled state.  Otherwise, the task is completed in RanToCompletion state once the specified time  delay has expired.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete after a time delay.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the time delay</para></returns><param name="millisecondsDelay"><attribution license="cc4" from="Microsoft" modified="false" />The number of milliseconds to wait before completing the returned task</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The cancellation token that will be checked prior to completing the returned task</param></Docs></Member><Member MemberName="Delay"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task Delay (TimeSpan delay, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task Delay(valuetype System.TimeSpan delay, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="delay" Type="System.TimeSpan" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If the cancellation token is signaled before the specified time delay, then the task is completed in <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" /> state.  Otherwise, the task is completed in <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" /> state once the specified time delay has expired.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete after a time delay.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the time delay</para></returns><param name="delay"><attribution license="cc4" from="Microsoft" modified="false" />The time span to wait before completing the returned task</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The cancellation token that will be checked prior to completing the returned task</param></Docs></Member><Member MemberName="Dispose"><MemberSignature Language="C#" Value="public void Dispose ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Dispose() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Releases all resources used by the current instance of the <see cref="T:System.Threading.Tasks.Task" /> class.</para></summary></Docs></Member><Member MemberName="Dispose"><MemberSignature Language="C#" Value="protected virtual void Dispose (bool disposing);" /><MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void Dispose(bool disposing) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="disposing" Type="System.Boolean" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Unlike most of the members of <see cref="T:System.Threading.Tasks.Task" />, this method is not thread-safe.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Disposes the <see cref="T:System.Threading.Tasks.Task" />, releasing all of its unmanaged resources.</para></summary><param name="disposing"><attribution license="cc4" from="Microsoft" modified="false" />A Boolean value that indicates whether this method is being called due to a call to <see cref="M:System.Threading.Tasks.Task.Dispose" />.</param></Docs></Member><Member MemberName="Exception"><MemberSignature Language="C#" Value="public AggregateException Exception { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.AggregateException Exception" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.AggregateException</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Tasks that throw unhandled exceptions store the resulting exception and propagate it wrapped in a <see cref="T:System.AggregateException" /> in calls to <see cref="M:System.Threading.Tasks.Task.Wait" /> or in accesses to the <see cref="P:System.Threading.Tasks.Task.Exception" /> property. Any exceptions not observed by the time the task instance is garbage collected will be propagated on the finalizer thread. For more information and an example, see <format type="text/html"><a href="beb51e50-9061-4d3d-908c-56a4f7c2e8c1">Exception Handling (Task Parallel Library)</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.AggregateException" /> that caused the <see cref="T:System.Threading.Tasks.Task" /> to end prematurely. If the <see cref="T:System.Threading.Tasks.Task" /> completed successfully or has not yet thrown any exceptions, this will return null.</para></summary></Docs></Member><Member MemberName="Factory"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.TaskFactory Factory { get; }" /><MemberSignature Language="ILAsm" Value=".property class System.Threading.Tasks.TaskFactory Factory" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.TaskFactory</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The factory returned from <see cref="P:System.Threading.Tasks.Task.Factory" /> is a default instance of <see cref="T:System.Threading.Tasks.TaskFactory" />, as would result from using the default constructor on task factory. The most common use of this property is to create a new task and start it in one call to <see cref="Overload:System.Threading.Tasks.TaskFactory.StartNew" />. For an example, see <format type="text/html"><a href="c4bc0f44-eba2-4e96-9e03-1cc787461e61">How to: Return a Value from a Task</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides access to factory methods for creating <see cref="T:System.Threading.Tasks.Task" /> and <see cref="T:System.Threading.Tasks.Task`1" /> instances.</para></summary></Docs></Member><Member MemberName="FromResult&lt;TResult&gt;"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;TResult&gt; FromResult&lt;TResult&gt; (TResult result);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;!!TResult&gt; FromResult&lt;TResult&gt;(!!TResult result) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="result" Type="TResult" /></Parameters><Docs><typeparam name="TResult">To be added.</typeparam><param name="result">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs></Member><Member MemberName="GetAwaiter"><MemberSignature Language="C#" Value="public System.Runtime.CompilerServices.TaskAwaiter GetAwaiter ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance valuetype System.Runtime.CompilerServices.TaskAwaiter GetAwaiter() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Runtime.CompilerServices.TaskAwaiter</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method is intended for compiler user rather than use directly in code.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets an awaiter used to await this <see cref="T:System.Threading.Tasks.Task" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An awaiter instance.</para></returns></Docs></Member><Member MemberName="Id"><MemberSignature Language="C#" Value="public int Id { get; }" /><MemberSignature Language="ILAsm" Value=".property instance int32 Id" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Task IDs are assigned on-demand and do not necessarily represent the order in the which task instances were created.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a unique ID for this <see cref="T:System.Threading.Tasks.Task" /> instance.</para></summary></Docs></Member><Member MemberName="IsCanceled"><MemberSignature Language="C#" Value="public bool IsCanceled { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool IsCanceled" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.Threading.Tasks.Task" /> will complete in Canceled state either if its <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> was marked for cancellation before the task started executing, or if the task acknowledged the cancellation request on its already signaled CancellationToken by throwing an <see cref="T:System.OperationCanceledException" /> that bears the same <see cref="T:System.Threading.CancellationToken" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets whether this <see cref="T:System.Threading.Tasks.Task" /> instance has completed execution due to being canceled.</para></summary></Docs></Member><Member MemberName="IsCompleted"><MemberSignature Language="C#" Value="public bool IsCompleted { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool IsCompleted" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para><see cref="P:System.Threading.Tasks.Task.IsCompleted" /> will return true when the task is in one of the three final states: <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" />, <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" />, or <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets whether this <see cref="T:System.Threading.Tasks.Task" /> has completed.</para></summary></Docs></Member><Member MemberName="IsFaulted"><MemberSignature Language="C#" Value="public bool IsFaulted { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool IsFaulted" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>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 <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" />, and its <see cref="P:System.Threading.Tasks.Task.Exception" /> property will be non-null.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets whether the <see cref="T:System.Threading.Tasks.Task" /> completed due to an unhandled exception.</para></summary></Docs></Member><Member MemberName="Run"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task Run (Action action);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task Run(class System.Action action) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="action" Type="System.Action" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Threading.Tasks.Task.Run(System.Action)" /> method is a simpler alternative to the <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action)" /> method. It creates a task with the following default values: </para><list type="bullet"><item><para>Its cancellation token is <see cref="P:System.Threading.CancellationToken.None" />. </para></item><item><para>Its <see cref="P:System.Threading.Tasks.Task.CreationOptions" /> property value is <see cref="F:System.Threading.Tasks.TaskCreationOptions.DenyChildAttach" />. </para></item><item><para>It uses the default task scheduler. </para></item></list></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Queues the specified work to run on the ThreadPool and returns a task handle for that work.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the work queued to execute in the ThreadPool.</para></returns><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The work to execute asynchronously</param></Docs></Member><Member MemberName="Run"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task Run (Func&lt;System.Threading.Tasks.Task&gt; function);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task Run(class System.Func`1&lt;class System.Threading.Tasks.Task&gt; function) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="function" Type="System.Func&lt;System.Threading.Tasks.Task&gt;" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Queues the specified work to run on the ThreadPool and returns a proxy for the  task returned by <paramref name="function" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents a proxy for the task returned by <paramref name="function" />.</para></returns><param name="function"><attribution license="cc4" from="Microsoft" modified="false" />The work to execute asynchronously</param></Docs></Member><Member MemberName="Run"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task Run (Action action, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task Run(class System.Action action, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="action" Type="System.Action" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Threading.Tasks.Task.Run(System.Action,System.Threading.CancellationToken)" /> method is a simpler alternative to the <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action,System.Threading.CancellationToken)" />  method. It creates a task with the following default values: </para><list type="bullet"><item><para>Its <see cref="P:System.Threading.Tasks.Task.CreationOptions" /> property value is <see cref="F:System.Threading.Tasks.TaskCreationOptions.DenyChildAttach" />. </para></item><item><para>It uses the default task scheduler. </para></item></list></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Queues the specified work to run on the ThreadPool and returns a task handle for that work.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the work queued to execute in the ThreadPool.</para></returns><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The work to execute asynchronously</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that should be used to cancel the work</param></Docs></Member><Member MemberName="Run"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task Run (Func&lt;System.Threading.Tasks.Task&gt; function, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task Run(class System.Func`1&lt;class System.Threading.Tasks.Task&gt; function, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="function" Type="System.Func&lt;System.Threading.Tasks.Task&gt;" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Queues the specified work to run on the ThreadPool and returns a proxy for the  task returned by <paramref name="function" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents a proxy for the task returned by <paramref name="function" />.</para></returns><param name="function"><attribution license="cc4" from="Microsoft" modified="false" />The work to execute asynchronously</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that should be used to cancel the work</param></Docs></Member><Member MemberName="Run&lt;TResult&gt;"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;TResult&gt; Run&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt; function);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;!!TResult&gt; Run&lt;TResult&gt;(class System.Func`1&lt;class System.Threading.Tasks.Task`1&lt;!!TResult&gt;&gt; function) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="function" Type="System.Func&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt;" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Queues the specified work to run on the ThreadPool and returns a proxy for the  Task(TResult) returned by <paramref name="function" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A Task(TResult) that represents a proxy for the Task(TResult) returned by <paramref name="function" />.</para></returns><param name="function"><attribution license="cc4" from="Microsoft" modified="false" />The work to execute asynchronously</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the result returned by the proxy task.</typeparam></Docs></Member><Member MemberName="Run&lt;TResult&gt;"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;TResult&gt; Run&lt;TResult&gt; (Func&lt;TResult&gt; function);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;!!TResult&gt; Run&lt;TResult&gt;(class System.Func`1&lt;!!TResult&gt; function) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="function" Type="System.Func&lt;TResult&gt;" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Threading.Tasks.Task.Run``1(System.Func{``0})" /> method is a simpler alternative to the <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action)" /> method. It creates a task with the following default values: </para><list type="bullet"><item><para>Its cancellation token is <see cref="P:System.Threading.CancellationToken.None" />. </para></item><item><para>Its <see cref="P:System.Threading.Tasks.Task.CreationOptions" /> property value is <see cref="F:System.Threading.Tasks.TaskCreationOptions.DenyChildAttach" />. </para></item><item><para>It uses the default task scheduler. </para></item></list></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Queues the specified work to run on the ThreadPool and returns a Task(TResult) handle for that work.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A Task(TResult) that represents the work queued to execute in the ThreadPool.</para></returns><param name="function"><attribution license="cc4" from="Microsoft" modified="false" />The work to execute asynchronously</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The result type of the task.</typeparam></Docs></Member><Member MemberName="Run&lt;TResult&gt;"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;TResult&gt; Run&lt;TResult&gt; (Func&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt; function, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;!!TResult&gt; Run&lt;TResult&gt;(class System.Func`1&lt;class System.Threading.Tasks.Task`1&lt;!!TResult&gt;&gt; function, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="function" Type="System.Func&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt;" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Queues the specified work to run on the ThreadPool and returns a proxy for the  Task(TResult) returned by <paramref name="function" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A Task(TResult) that represents a proxy for the Task(TResult) returned by <paramref name="function" />.</para></returns><param name="function"><attribution license="cc4" from="Microsoft" modified="false" />The work to execute asynchronously</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that should be used to cancel the work</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the result returned by the proxy task.</typeparam></Docs></Member><Member MemberName="Run&lt;TResult&gt;"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;TResult&gt; Run&lt;TResult&gt; (Func&lt;TResult&gt; function, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;!!TResult&gt; Run&lt;TResult&gt;(class System.Func`1&lt;!!TResult&gt; function, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="function" Type="System.Func&lt;TResult&gt;" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Threading.Tasks.Task.Run``1(System.Func{``0},System.Threading.CancellationToken)" /> method is a simpler alternative to the <see cref="M:System.Threading.Tasks.TaskFactory.StartNew(System.Action)" /> method. It creates a task with the following default values: </para><list type="bullet"><item><para>Its <see cref="P:System.Threading.Tasks.Task.CreationOptions" /> property value is <see cref="F:System.Threading.Tasks.TaskCreationOptions.DenyChildAttach" />. </para></item><item><para>It uses the default task scheduler. </para></item></list></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Queues the specified work to run on the thread pool and returns a Task(TResult) handle for that work.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A Task(TResult) that represents the work queued to execute in the ThreadPool.</para></returns><param name="function"><attribution license="cc4" from="Microsoft" modified="false" />The work to execute asynchronously</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that should be used to cancel the work</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The result type of the task.</typeparam></Docs></Member><Member MemberName="RunSynchronously"><MemberSignature Language="C#" Value="public void RunSynchronously ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void RunSynchronously() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para> A task may only be started and run only once. Any attempts to schedule a task a second time will result in an exception.</para><para> Tasks executed with <see cref="M:System.Threading.Tasks.Task.RunSynchronously" /> will be associated with the current <see cref="T:System.Threading.Tasks.TaskScheduler" />.</para><para>  If the target scheduler does not support running this task on the current thread, the task will be scheduled for execution on the scheduler, and the current thread will block until the task has completed execution.</para><para></para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Runs the <see cref="T:System.Threading.Tasks.Task" /> synchronously on the current <see cref="T:System.Threading.Tasks.TaskScheduler" />.</para></summary></Docs></Member><Member MemberName="RunSynchronously"><MemberSignature Language="C#" Value="public void RunSynchronously (System.Threading.Tasks.TaskScheduler scheduler);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void RunSynchronously(class System.Threading.Tasks.TaskScheduler scheduler) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="scheduler" Type="System.Threading.Tasks.TaskScheduler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para> A task may only be started and run only once. Any attempts to schedule a task a second time will result in an exception.</para><para>  If the target scheduler does not support running this task on the current thread, the task will be scheduled for execution on the scheduler, and the current thread will block until the task has completed execution.</para><para></para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Runs the <see cref="T:System.Threading.Tasks.Task" /> synchronously on the <see cref="T:System.Threading.Tasks.TaskScheduler" /> provided.</para></summary><param name="scheduler"><attribution license="cc4" from="Microsoft" modified="false" />The scheduler on which to attempt to run this task inline.</param></Docs></Member><Member MemberName="Start"><MemberSignature Language="C#" Value="public void Start ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Start() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A task may only be started and run only once. Any attempts to schedule a task a second time will result in an exception.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Starts the <see cref="T:System.Threading.Tasks.Task" />, scheduling it for execution to the current <see cref="T:System.Threading.Tasks.TaskScheduler" />.</para></summary></Docs></Member><Member MemberName="Start"><MemberSignature Language="C#" Value="public void Start (System.Threading.Tasks.TaskScheduler scheduler);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Start(class System.Threading.Tasks.TaskScheduler scheduler) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="scheduler" Type="System.Threading.Tasks.TaskScheduler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A task may only be started and run only once. Any attempts to schedule a task a second time will result in an exception.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Starts the <see cref="T:System.Threading.Tasks.Task" />, scheduling it for execution to the specified <see cref="T:System.Threading.Tasks.TaskScheduler" />.</para></summary><param name="scheduler"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.Tasks.TaskScheduler" /> with which to associate and execute this task.</param></Docs></Member><Member MemberName="Status"><MemberSignature Language="C#" Value="public System.Threading.Tasks.TaskStatus Status { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.Threading.Tasks.TaskStatus Status" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.TaskStatus</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>For more information and an example, see <format type="text/html"><a href="9cc64281-4346-41d7-8b3a-25eb8f723385">How to: Chain Multiple Tasks with Continuations</a></format> and <format type="text/html"><a href="08574301-8331-4719-ad50-9cf7f6ff3048">How to: Cancel a Task and Its Children</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Threading.Tasks.TaskStatus" /> of this task.</para></summary></Docs></Member><Member MemberName="System.IAsyncResult.AsyncWaitHandle"><MemberSignature Language="C#" Value="System.Threading.WaitHandle System.IAsyncResult.AsyncWaitHandle { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Threading.WaitHandle System.IAsyncResult.AsyncWaitHandle" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.WaitHandle</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Using the wait functionality provided by <see cref="M:System.Threading.Tasks.Task.Wait" /> should be preferred over using <see cref="P:System.IAsyncResult.AsyncWaitHandle" /> for similar functionality. For more information, see <format type="text/html"><a href="79cb522b-9c93-46ed-b23a-c06908f3a374">How to: Wait on One or More Tasks to Complete</a></format> and <format type="text/html"><a href="7add905b-ff60-4353-af79-5089038d9a08">TPL With Other Asynchronous Patterns</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a <see cref="T:System.Threading.WaitHandle" /> that can be used to wait for the task to complete.</para></summary></Docs></Member><Member MemberName="System.IAsyncResult.CompletedSynchronously"><MemberSignature Language="C#" Value="bool System.IAsyncResult.CompletedSynchronously { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool System.IAsyncResult.CompletedSynchronously" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets an indication of whether the operation completed synchronously.</para></summary></Docs></Member><Member MemberName="Wait"><MemberSignature Language="C#" Value="public void Wait ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Wait() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>For more information and an example, see <format type="text/html"><a href="79cb522b-9c93-46ed-b23a-c06908f3a374">How to: Wait on One or More Tasks to Complete</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for the <see cref="T:System.Threading.Tasks.Task" /> to complete execution.</para></summary></Docs></Member><Member MemberName="Wait"><MemberSignature Language="C#" Value="public bool Wait (int millisecondsTimeout);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool Wait(int32 millisecondsTimeout) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="millisecondsTimeout" Type="System.Int32" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for the <see cref="T:System.Threading.Tasks.Task" /> to complete execution within a specified number of milliseconds.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the <see cref="T:System.Threading.Tasks.Task" /> completed execution within the allotted time; otherwise, false.</para></returns><param name="millisecondsTimeout"><attribution license="cc4" from="Microsoft" modified="false" />The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite" /> (-1) to wait indefinitely.</param></Docs></Member><Member MemberName="Wait"><MemberSignature Language="C#" Value="public void Wait (System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Wait(valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for the cancellable <see cref="T:System.Threading.Tasks.Task" /> to complete execution.</para></summary><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> to observe while waiting for the task to complete.</param></Docs></Member><Member MemberName="Wait"><MemberSignature Language="C#" Value="public bool Wait (TimeSpan timeout);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool Wait(valuetype System.TimeSpan timeout) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="timeout" Type="System.TimeSpan" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for the <see cref="T:System.Threading.Tasks.Task" /> to complete execution within a specified time interval.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the <see cref="T:System.Threading.Tasks.Task" /> completed execution within the allotted time; otherwise, false.</para></returns><param name="timeout"><attribution license="cc4" from="Microsoft" modified="false" />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.</param></Docs></Member><Member MemberName="Wait"><MemberSignature Language="C#" Value="public bool Wait (int millisecondsTimeout, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool Wait(int32 millisecondsTimeout, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="millisecondsTimeout" Type="System.Int32" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for the cancellable <see cref="T:System.Threading.Tasks.Task" /> to complete execution.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the <see cref="T:System.Threading.Tasks.Task" /> completed execution within the allotted time; otherwise, false.</para></returns><param name="millisecondsTimeout"><attribution license="cc4" from="Microsoft" modified="false" />The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite" /> (-1) to wait indefinitely.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> to observe while waiting for the task to complete.</param></Docs></Member><Member MemberName="WaitAll"><MemberSignature Language="C#" Value="public static void WaitAll (System.Threading.Tasks.Task[] tasks);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig void WaitAll(class System.Threading.Tasks.Task[] tasks) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for all of the provided <see cref="T:System.Threading.Tasks.Task" /> objects to complete execution.</para></summary><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Threading.Tasks.Task" /> instances on which to wait.</param></Docs></Member><Member MemberName="WaitAll"><MemberSignature Language="C#" Value="public static bool WaitAll (System.Threading.Tasks.Task[] tasks, int millisecondsTimeout);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig bool WaitAll(class System.Threading.Tasks.Task[] tasks, int32 millisecondsTimeout) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]" /><Parameter Name="millisecondsTimeout" Type="System.Int32" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for all of the provided <see cref="T:System.Threading.Tasks.Task" /> objects to complete execution within a specified number of milliseconds.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if all of the <see cref="T:System.Threading.Tasks.Task" /> instances completed execution within the allotted time; otherwise, false.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Threading.Tasks.Task" /> instances on which to wait.</param><param name="millisecondsTimeout"><attribution license="cc4" from="Microsoft" modified="false" />The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite" /> (-1) to wait indefinitely.</param></Docs></Member><Member MemberName="WaitAll"><MemberSignature Language="C#" Value="public static void WaitAll (System.Threading.Tasks.Task[] tasks, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig void WaitAll(class System.Threading.Tasks.Task[] tasks, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <paramref name="cancellationToken" /> argument is used to cancel the wait operation. If it is canceled, the Wait returns false (False in Visual Basic). Cancellation of the tasks is a distinct operation, and is signaled by the AggregateException as noted above.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for all of the provided cancellable <see cref="T:System.Threading.Tasks.Task" /> objects to complete execution.</para></summary><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Threading.Tasks.Task" /> instances on which to wait.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> to observe while waiting for the tasks to complete.</param></Docs></Member><Member MemberName="WaitAll"><MemberSignature Language="C#" Value="public static bool WaitAll (System.Threading.Tasks.Task[] tasks, TimeSpan timeout);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig bool WaitAll(class System.Threading.Tasks.Task[] tasks, valuetype System.TimeSpan timeout) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]" /><Parameter Name="timeout" Type="System.TimeSpan" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <paramref name="cancellationToken" /> argument is used to cancel the wait operation. If it is canceled, the Wait returns false (False in Visual Basic). Cancellation of the tasks is a distinct operation, and is signaled by the AggregateException as noted above.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for all of the provided cancellable <see cref="T:System.Threading.Tasks.Task" /> objects to complete execution within a specified time interval.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if all of the <see cref="T:System.Threading.Tasks.Task" /> instances completed execution within the allotted time; otherwise, false.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Threading.Tasks.Task" /> instances on which to wait.</param><param name="timeout"><attribution license="cc4" from="Microsoft" modified="false" />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.</param></Docs></Member><Member MemberName="WaitAll"><MemberSignature Language="C#" Value="public static bool WaitAll (System.Threading.Tasks.Task[] tasks, int millisecondsTimeout, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig bool WaitAll(class System.Threading.Tasks.Task[] tasks, int32 millisecondsTimeout, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]" /><Parameter Name="millisecondsTimeout" Type="System.Int32" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <paramref name="cancellationToken" /> argument is used to cancel the wait operation. If it is canceled, the Wait returns false (False in Visual Basic). Cancellation of the tasks is a distinct operation, and is signaled by the AggregateException as noted above.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for all of the provided cancellable <see cref="T:System.Threading.Tasks.Task" /> objects to complete execution within a specified number of milliseconds.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if all of the <see cref="T:System.Threading.Tasks.Task" /> instances completed execution within the allotted time; otherwise, false.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Threading.Tasks.Task" /> instances on which to wait.</param><param name="millisecondsTimeout"><attribution license="cc4" from="Microsoft" modified="false" />The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite" /> (-1) to wait indefinitely.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> to observe while waiting for the tasks to complete.</param></Docs></Member><Member MemberName="WaitAny"><MemberSignature Language="C#" Value="public static int WaitAny (System.Threading.Tasks.Task[] tasks);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 WaitAny(class System.Threading.Tasks.Task[] tasks) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for any of the provided <see cref="T:System.Threading.Tasks.Task" /> objects to complete execution.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The index of the completed task in the <paramref name="tasks" /> array argument.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Threading.Tasks.Task" /> instances on which to wait.</param></Docs></Member><Member MemberName="WaitAny"><MemberSignature Language="C#" Value="public static int WaitAny (System.Threading.Tasks.Task[] tasks, int millisecondsTimeout);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 WaitAny(class System.Threading.Tasks.Task[] tasks, int32 millisecondsTimeout) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]" /><Parameter Name="millisecondsTimeout" Type="System.Int32" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for any of the provided <see cref="T:System.Threading.Tasks.Task" /> objects to complete execution within a specified number of milliseconds.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The index of the completed task in the <paramref name="tasks" /> array argument, or -1 if the timeout occurred.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Threading.Tasks.Task" /> instances on which to wait.</param><param name="millisecondsTimeout"><attribution license="cc4" from="Microsoft" modified="false" />The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite" /> (-1) to wait indefinitely.</param></Docs></Member><Member MemberName="WaitAny"><MemberSignature Language="C#" Value="public static int WaitAny (System.Threading.Tasks.Task[] tasks, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 WaitAny(class System.Threading.Tasks.Task[] tasks, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for any of the provided cancellable <see cref="T:System.Threading.Tasks.Task" /> objects to complete execution.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The index of the completed task in the <paramref name="tasks" /> array argument.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Threading.Tasks.Task" /> instances on which to wait.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> to observe while waiting for a task to complete.</param></Docs></Member><Member MemberName="WaitAny"><MemberSignature Language="C#" Value="public static int WaitAny (System.Threading.Tasks.Task[] tasks, TimeSpan timeout);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 WaitAny(class System.Threading.Tasks.Task[] tasks, valuetype System.TimeSpan timeout) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]" /><Parameter Name="timeout" Type="System.TimeSpan" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for any of the provided <see cref="T:System.Threading.Tasks.Task" /> objects to complete execution within a specified time interval.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The index of the completed task in the <paramref name="tasks" /> array argument, or -1 if the timeout occurred.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Threading.Tasks.Task" /> instances on which to wait.</param><param name="timeout"><attribution license="cc4" from="Microsoft" modified="false" />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.</param></Docs></Member><Member MemberName="WaitAny"><MemberSignature Language="C#" Value="public static int WaitAny (System.Threading.Tasks.Task[] tasks, int millisecondsTimeout, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 WaitAny(class System.Threading.Tasks.Task[] tasks, int32 millisecondsTimeout, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]" /><Parameter Name="millisecondsTimeout" Type="System.Int32" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Waits for any of the provided cancellable <see cref="T:System.Threading.Tasks.Task" /> objects to complete execution within a specified number of milliseconds.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The index of the completed task in the <paramref name="tasks" /> array argument, or -1 if the timeout occurred.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Threading.Tasks.Task" /> instances on which to wait.</param><param name="millisecondsTimeout"><attribution license="cc4" from="Microsoft" modified="false" />The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite" /> (-1) to wait indefinitely.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> to observe while waiting for a task to complete.</param></Docs></Member><Member MemberName="WhenAll"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task WhenAll (System.Collections.Generic.IEnumerable&lt;System.Threading.Tasks.Task&gt; tasks);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task WhenAll(class System.Collections.Generic.IEnumerable`1&lt;class System.Threading.Tasks.Task&gt; tasks) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Collections.Generic.IEnumerable&lt;System.Threading.Tasks.Task&gt;" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If any of the supplied tasks completes in a faulted state, the returned task will also complete in a Faulted state,   where its exceptions will contain the aggregation of the set of unwrapped exceptions from each of the supplied tasks.</para><para>If none of the supplied tasks faulted but at least one of them was canceled, the returned task will end in the Canceled state.</para><para>If none of the tasks faulted and none of the tasks were canceled, the resulting task will end in the RanToCompletion state.</para><para>If the supplied array/enumerable contains no tasks, the returned task will immediately transition to a RanToCompletion   state before it's returned to the caller.  </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete when all of the supplied tasks have completed.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the completion of all of the supplied tasks.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />The tasks to wait on for completion.</param></Docs></Member><Member MemberName="WhenAll"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task WhenAll (System.Threading.Tasks.Task[] tasks);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task WhenAll(class System.Threading.Tasks.Task[] tasks) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If any of the supplied tasks completes in a faulted state, the returned task will also complete in a Faulted state,   where its exceptions will contain the aggregation of the set of unwrapped exceptions from each of the supplied tasks.  </para><para>If none of the supplied tasks faulted but at least one of them was canceled, the returned task will end in the Canceled state.</para><para>If none of the tasks faulted and none of the tasks were canceled, the resulting task will end in the RanToCompletion state.</para><para>If the supplied array/enumerable contains no tasks, the returned task will immediately transition to a RanToCompletion   state before it's returned to the caller.  </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete when all of the supplied tasks have completed.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the completion of all of the supplied tasks.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />The tasks to wait on for completion.</param></Docs></Member><Member MemberName="WhenAll&lt;TResult&gt;"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;TResult[]&gt; WhenAll&lt;TResult&gt; (System.Collections.Generic.IEnumerable&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt; tasks);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;!!TResult[]&gt; WhenAll&lt;TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;class System.Threading.Tasks.Task`1&lt;!!TResult&gt;&gt; tasks) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult[]&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="tasks" Type="System.Collections.Generic.IEnumerable&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt;" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If any of the supplied tasks completes in a faulted state, the returned task will also complete in a Faulted state,   where its exceptions will contain the aggregation of the set of unwrapped exceptions from each of the supplied tasks.</para><para>If none of the supplied tasks faulted but at least one of them was canceled, the returned task will end in the Canceled state.</para><para>If none of the tasks faulted and none of the tasks were canceled, the resulting task will end in the RanToCompletion state.    The Result of the returned task will be set to an array containing all of the results of the   supplied tasks in the same order as they were provided (e.g. if the input tasks array contained t1, t2, t3, the output   task's Result will return an TResult[] where arr[0] == t1.Result, arr[1] == t2.Result, and arr[2] == t3.Result). </para><para>If the supplied array/enumerable contains no tasks, the returned task will immediately transition to a RanToCompletion   state before it's returned to the caller.  The returned TResult[] will be an array of 0 elements.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete when all of the supplied tasks have completed.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the completion of all of the supplied tasks.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />The tasks to wait on for completion.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the completed task.</typeparam></Docs></Member><Member MemberName="WhenAll&lt;TResult&gt;"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;TResult[]&gt; WhenAll&lt;TResult&gt; (System.Threading.Tasks.Task&lt;TResult&gt;[] tasks);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;!!TResult[]&gt; WhenAll&lt;TResult&gt;(class System.Threading.Tasks.Task`1&lt;!!TResult&gt;[] tasks) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;TResult[]&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task&lt;TResult&gt;[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If any of the supplied tasks completes in a faulted state, the returned task will also complete in a Faulted state,   where its exceptions will contain the aggregation of the set of unwrapped exceptions from each of the supplied tasks.  </para><para>If none of the supplied tasks faulted but at least one of them was canceled, the returned task will end in the Canceled state.</para><para>If none of the tasks faulted and none of the tasks were canceled, the resulting task will end in the RanToCompletion state.    The Result of the returned task will be set to an array containing all of the results of the   supplied tasks in the same order as they were provided (e.g. if the input tasks array contained t1, t2, t3, the output   task's Result will return an TResult[] where arr[0] == t1.Result, arr[1] == t2.Result, and arr[2] == t3.Result). </para><para>If the supplied array/enumerable contains no tasks, the returned task will immediately transition to a RanToCompletion   state before it's returned to the caller.  The returned TResult[] will be an array of 0 elements.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete when all of the supplied tasks have completed.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the completion of all of the supplied tasks.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />The tasks to wait on for completion.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the completed task.</typeparam></Docs></Member><Member MemberName="WhenAny"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;System.Threading.Tasks.Task&gt; WhenAny (System.Collections.Generic.IEnumerable&lt;System.Threading.Tasks.Task&gt; tasks);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;class System.Threading.Tasks.Task&gt; WhenAny(class System.Collections.Generic.IEnumerable`1&lt;class System.Threading.Tasks.Task&gt; tasks) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;System.Threading.Tasks.Task&gt;</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Collections.Generic.IEnumerable&lt;System.Threading.Tasks.Task&gt;" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned task will complete when any of the supplied tasks has completed.  The returned task will always end in the RanToCompletion state  with its Result set to the first task to complete.  This is true even if the first task to complete ended in the Canceled or Faulted state.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete when any of the supplied tasks have completed.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the completion of one of the supplied tasks.  The return task's Result is the task that completed.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />The tasks to wait on for completion.</param></Docs></Member><Member MemberName="WhenAny"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;System.Threading.Tasks.Task&gt; WhenAny (System.Threading.Tasks.Task[] tasks);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;class System.Threading.Tasks.Task&gt; WhenAny(class System.Threading.Tasks.Task[] tasks) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;System.Threading.Tasks.Task&gt;</ReturnType></ReturnValue><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned task will complete when any of the supplied tasks has completed.  The returned task will always end in the RanToCompletion state   with its Result set to the first task to complete.  This is true even if the first task to complete ended in the Canceled or Faulted state.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete when any of the supplied tasks have completed.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the completion of one of the supplied tasks.  The return task's Result is the task that completed.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />The tasks to wait on for completion.</param></Docs></Member><Member MemberName="WhenAny&lt;TResult&gt;"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt; WhenAny&lt;TResult&gt; (System.Collections.Generic.IEnumerable&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt; tasks);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;class System.Threading.Tasks.Task`1&lt;!!TResult&gt;&gt; WhenAny&lt;TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;class System.Threading.Tasks.Task`1&lt;!!TResult&gt;&gt; tasks) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="tasks" Type="System.Collections.Generic.IEnumerable&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt;" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned task will complete when any of the supplied tasks has completed.  The returned task will always end in the RanToCompletion state with its Result set to the first task to complete. This is true even if the first task to complete ended in the Canceled or Faulted state.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete when any of the supplied tasks have completed.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the completion of one of the supplied tasks.  The return task's Result is the task that completed.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />The tasks to wait on for completion.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the completed task.</typeparam></Docs></Member><Member MemberName="WhenAny&lt;TResult&gt;"><MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt; WhenAny&lt;TResult&gt; (System.Threading.Tasks.Task&lt;TResult&gt;[] tasks);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1&lt;class System.Threading.Tasks.Task`1&lt;!!TResult&gt;&gt; WhenAny&lt;TResult&gt;(class System.Threading.Tasks.Task`1&lt;!!TResult&gt;[] tasks) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;System.Threading.Tasks.Task&lt;TResult&gt;&gt;</ReturnType></ReturnValue><TypeParameters><TypeParameter Name="TResult" /></TypeParameters><Parameters><Parameter Name="tasks" Type="System.Threading.Tasks.Task&lt;TResult&gt;[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned task will complete when any of the supplied tasks has completed.  The returned task will always end in the RanToCompletion state with its Result set to the first task to complete. This is true even if the first task to complete ended in the Canceled or Faulted state.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a task that will complete when any of the supplied tasks have completed.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the completion of one of the supplied tasks.  The return task's Result is the task that completed.</para></returns><param name="tasks"><attribution license="cc4" from="Microsoft" modified="false" />The tasks to wait on for completion.</param><typeparam name="TResult"><attribution license="cc4" from="Microsoft" modified="false" />The type of the completed task.</typeparam></Docs></Member><Member MemberName="Yield"><MemberSignature Language="C#" Value="public static System.Runtime.CompilerServices.YieldAwaitable Yield ();" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Runtime.CompilerServices.YieldAwaitable Yield() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Runtime.CompilerServices.YieldAwaitable</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>You can use await Task.Yield(); in an asynchronous method to force the method to complete asynchronously. If there is a current synchronization context (<see cref="T:System.Threading.SynchronizationContext" /> object), this will post the remainder of the method’s execution back to that context. However, the context will decide how to prioritize this work relative to other work that may be pending. The synchronization context that is present on a UI thread in most UI environments will often prioritize work posted to the context higher than input and rendering work. For this reason, do not rely on await Task.Yield(); to keep a UI responsive.  For more information, see the entry <see cref="http://blogs.msdn.com/b/pfxteam/archive/2008/07/23/8768673.aspx">Useful Abstractions Enabled with ContinueWith</see> in the Parallel Programming with .NET blog.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates an awaitable task that asynchronously yields back to the current context when awaited.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A context that, when awaited, will asynchronously transition back into the current context at the time of the await. If the current <see cref="T:System.Threading.SynchronizationContext" /> is non-null, it is treated as the current context. Otherwise, the task scheduler that is associated with the currently executing task is treated as the current context. </para></returns></Docs></Member></Members></Type>