zoukankan      html  css  js  c++  java
  • System.Threading.Tasks.TaskFactory.cs

    ylbtech-System.Threading.Tasks.TaskFactory.cs
    1.返回顶部
    1、
    #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    // C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.6.1mscorlib.dll
    #endregion
    
    namespace System.Threading.Tasks
    {
        //
        // 摘要:
        //     提供对创建和计划 System.Threading.Tasks.Task 对象的支持。
        public class TaskFactory
        {
            //
            // 摘要:
            //     使用默认配置初始化 System.Threading.Tasks.TaskFactory 实例。
            public TaskFactory();
            //
            // 摘要:
            //     使用指定配置初始化 System.Threading.Tasks.TaskFactory 实例。
            //
            // 参数:
            //   cancellationToken:
            //     将指派给由此 System.Threading.Tasks.TaskFactory.CancellationToken 创建的任务的 System.Threading.Tasks.TaskFactory,除非在调用工厂方法时显式指定另一个
            //     CancellationToken。
            public TaskFactory(CancellationToken cancellationToken);
            //
            // 摘要:
            //     使用指定配置初始化 System.Threading.Tasks.TaskFactory 实例。
            //
            // 参数:
            //   scheduler:
            //     要用于计划使用此 TaskFactory 创建的任何任务的 System.Threading.Tasks.TaskScheduler。 一个 null 值,该值指示应使用当前的
            //     TaskScheduler。
            public TaskFactory(TaskScheduler scheduler);
            //
            // 摘要:
            //     使用指定配置初始化 System.Threading.Tasks.TaskFactory 实例。
            //
            // 参数:
            //   creationOptions:
            //     在使用此 TaskFactory 创建任务时要使用的默认 System.Threading.Tasks.TaskCreationOptions。
            //
            //   continuationOptions:
            //     在使用此 TaskFactory 创建延续任务时要使用的默认 System.Threading.Tasks.TaskContinuationOptions。
            //
            // 异常:
            //   T:System.ArgumentOutOfRangeException:
            //     creationOptions 参数指定了无效 System.Threading.Tasks.TaskCreationOptions 值。 有关详细信息,请参阅的备注
            //     System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)。
            //     - 或 - continuationOptions 参数指定值无效。
            public TaskFactory(TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions);
            //
            // 摘要:
            //     使用指定配置初始化 System.Threading.Tasks.TaskFactory 实例。
            //
            // 参数:
            //   cancellationToken:
            //     将指派给由此 System.Threading.Tasks.TaskFactory.CancellationToken 创建的任务的 System.Threading.Tasks.TaskFactory,除非在调用工厂方法时显式指定另一个
            //     CancellationToken。
            //
            //   creationOptions:
            //     在使用此 TaskFactory 创建任务时要使用的默认 System.Threading.Tasks.TaskCreationOptions。
            //
            //   continuationOptions:
            //     在使用此 TaskFactory 创建延续任务时要使用的默认 System.Threading.Tasks.TaskContinuationOptions。
            //
            //   scheduler:
            //     要用于计划使用此 TaskFactory 创建的任何任务的默认 System.Threading.Tasks.TaskScheduler。 一个 null
            //     值,该值指示应使用 TaskScheduler.Current。
            //
            // 异常:
            //   T:System.ArgumentOutOfRangeException:
            //     creationOptions 参数指定了无效 System.Threading.Tasks.TaskCreationOptions 值。 有关详细信息,请参阅的备注
            //     System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)。
            //     - 或 - continuationOptions 参数指定值无效。
            public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler);
    
            //
            // 摘要:
            //     获取此任务工厂的默认任务计划程序。
            //
            // 返回结果:
            //     此任务工厂的默认任务计划程序。
            public TaskScheduler Scheduler { get; }
            //
            // 摘要:
            //     获取此任务工厂的默认取消标记。
            //
            // 返回结果:
            //     此任务工厂的默认任务取消标记。
            public CancellationToken CancellationToken { get; }
            //
            // 摘要:
            //     获取此任务工厂的默认任务创建选项。
            //
            // 返回结果:
            //     此任务工厂的默认任务创建选项。
            public TaskCreationOptions CreationOptions { get; }
            //
            // 摘要:
            //     获取此任务工厂的默认任务继续选项。
            //
            // 返回结果:
            //     此任务工厂的默认任务继续选项。
            public TaskContinuationOptions ContinuationOptions { get; }
    
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的所有任务完成时要执行的操作委托。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationAction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的所有任务完成时要执行的操作委托。
            //
            //   continuationOptions:
            //     枚举值的按位组合,这些枚举值控制新的延续任务的行为。 NotOn* 和 OnlyOn* 成员不受支持。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationAction 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     continuationOptions 参数指定值无效。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction, TaskContinuationOptions continuationOptions);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的所有任务完成时要执行的操作委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的取消标记。
            //
            //   continuationOptions:
            //     枚举值的按位组合,这些枚举值控制新的延续任务的行为。
            //
            //   scheduler:
            //     用于计划新的延续任务的对象。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationAction 参数为 null。 - 或 - scheduler 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的所有任务完成时要执行的操作委托。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationAction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的所有任务完成时要执行的操作委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的取消标记。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。 - 或 - System.Threading.CancellationTokenSource 创建 cancellationToken
            //     被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationAction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的所有任务完成时要执行的操作委托。
            //
            //   continuationOptions:
            //     枚举值的按位组合,这些枚举值控制新的延续任务的行为。 NotOn* 和 OnlyOn* 成员不受支持。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationAction 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     continuationOptions 参数指定值无效。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction, TaskContinuationOptions continuationOptions);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的所有任务完成时要执行的操作委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的取消标记。
            //
            //   continuationOptions:
            //     枚举值的按位组合,这些枚举值控制新的延续任务的行为。 NotOn* 和 OnlyOn* 成员不受支持。
            //
            //   scheduler:
            //     用于计划新的延续任务的对象。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationAction 参数为 null。 - 或 - scheduler 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的所有任务完成时要异步执行的函数委托。
            //
            // 类型参数:
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的任务关联的结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationFunction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的所有任务完成时要异步执行的函数委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的取消标记。
            //
            // 类型参数:
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的任务关联的结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。 - 或 - System.Threading.CancellationTokenSource 创建 cancellationToken
            //     被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationFunction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的所有任务完成时要异步执行的函数委托。
            //
            //   continuationOptions:
            //     枚举值的按位组合,这些枚举值控制新的延续任务的行为。 NotOn* 和 OnlyOn* 成员不受支持。
            //
            // 类型参数:
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的任务关联的结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationFunction 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     continuationOptions 参数指定值无效。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction, TaskContinuationOptions continuationOptions);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的所有任务完成时要异步执行的函数委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的取消标记。
            //
            //   continuationOptions:
            //     枚举值的按位组合,这些枚举值控制新的延续任务的行为。 NotOn* 和 OnlyOn* 成员不受支持。
            //
            //   scheduler:
            //     用于计划新的延续任务的对象。
            //
            // 类型参数:
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的任务关联的结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationFunction 参数为 null。 - 或 - scheduler 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的所有任务完成时要异步执行的函数委托。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的任务关联的结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationFunction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的所有任务完成时要异步执行的函数委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的取消标记。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的任务关联的结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。 - 或 - System.Threading.CancellationTokenSource 创建 cancellationToken
            //     被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationFunction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的所有任务完成时要异步执行的函数委托。
            //
            //   continuationOptions:
            //     枚举值的按位组合,这些枚举值控制新的延续任务的行为。 NotOn* 和 OnlyOn* 成员不受支持。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的任务关联的结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationFunction 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     continuationOptions 参数指定值无效。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, TaskContinuationOptions continuationOptions);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的所有任务完成时要异步执行的函数委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的取消标记。
            //
            //   continuationOptions:
            //     枚举值的按位组合,这些枚举值控制新的延续任务的行为。 NotOn* 和 OnlyOn* 成员不受支持。
            //
            //   scheduler:
            //     用于计划新的延续任务的对象。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的任务关联的结果的类型。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationFunction 参数为 null。 - 或 - scheduler 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     continuationOptions 参数指定值无效。
            //
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。 - 或 - System.Threading.CancellationTokenSource 创建 cancellationToken
            //     被释放。
            public Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建一个延续任务,该任务在一组指定的任务完成后开始。
            //
            // 参数:
            //   tasks:
            //     继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的所有任务完成时要执行的操作委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的取消标记。
            //
            // 返回结果:
            //     新的延续任务。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的某个元素 tasks 数组已被释放。 - 或 - System.Threading.CancellationTokenSource 创建 cancellationToken
            //     被释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationAction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组为空或包含一个 null 值。
            public Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的一个任务完成时要执行的操作委托。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     已释放 tasks 数组中的一个元素。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组为 null。 - 或 - continuationAction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组包含 null 值。 - 或 - tasks 数组为空。
            public Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的一个任务完成时要执行的操作委托。
            //
            //   continuationOptions:
            //     System.Threading.Tasks.TaskContinuationOptions 值,用于控制所创建的延续 System.Threading.Tasks.Task
            //     的行为。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     时,将引发的异常中的元素之一 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationAction 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 continuationOptions 参数指定 TaskContinuationOptions 值无效。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction, TaskContinuationOptions continuationOptions);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的一个任务完成时要执行的操作委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的 System.Threading.CancellationToken。
            //
            //   continuationOptions:
            //     System.Threading.Tasks.TaskContinuationOptions 值,用于控制所创建的延续 System.Threading.Tasks.Task
            //     的行为。
            //
            //   scheduler:
            //     用于计划所创建的延续 System.Threading.Tasks.TaskScheduler 的 System.Threading.Tasks.Task。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationAction 参数为 null。 - 或 - 时,将引发的异常
            //     scheduler 参数为 null。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task`1,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的一个任务完成时要异步执行的函数委托。
            //
            // 类型参数:
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的 System.Threading.Tasks.Task`1 关联的结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     时,将引发的异常中的元素之一 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationFunction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task`1,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的一个任务完成时要异步执行的函数委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的 System.Threading.CancellationToken。
            //
            // 类型参数:
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的 System.Threading.Tasks.Task`1 关联的结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     时,将引发的异常中的元素之一 tasks 数组已被释放。 - 或 - 提供 System.Threading.CancellationToken 被释放。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationFunction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task`1,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的一个任务完成时要异步执行的函数委托。
            //
            //   continuationOptions:
            //     System.Threading.Tasks.TaskContinuationOptions 值,用于控制所创建的延续 System.Threading.Tasks.Task`1
            //     的行为。
            //
            // 类型参数:
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的 System.Threading.Tasks.Task`1 关联的结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     时,将引发的异常中的元素之一 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationFunction 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 continuationOptions 参数指定 TaskContinuationOptions 值无效。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction, TaskContinuationOptions continuationOptions);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task`1,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的一个任务完成时要异步执行的函数委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的 System.Threading.CancellationToken。
            //
            //   continuationOptions:
            //     System.Threading.Tasks.TaskContinuationOptions 值,用于控制所创建的延续 System.Threading.Tasks.Task`1
            //     的行为。
            //
            //   scheduler:
            //     用于计划所创建的延续 System.Threading.Tasks.TaskScheduler 的 System.Threading.Tasks.Task`1。
            //
            // 类型参数:
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的 System.Threading.Tasks.Task`1 关联的结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationFunction 参数为 null。 - 或 -
            //     时,将引发的异常 scheduler 参数为 null。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task`1,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的一个任务完成时要异步执行的函数委托。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的 System.Threading.Tasks.Task`1 关联的结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     时,将引发的异常中的元素之一 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationFunction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task`1,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的一个任务完成时要异步执行的函数委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的 System.Threading.CancellationToken。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的 System.Threading.Tasks.Task`1 关联的结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     时,将引发的异常中的元素之一 tasks 数组已被释放。 - 或 - 提供 System.Threading.CancellationToken 被释放。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationFunction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task`1,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的一个任务完成时要异步执行的函数委托。
            //
            //   continuationOptions:
            //     System.Threading.Tasks.TaskContinuationOptions 值,用于控制所创建的延续 System.Threading.Tasks.Task`1
            //     的行为。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的 System.Threading.Tasks.Task`1 关联的结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     时,将引发的异常中的元素之一 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationFunction 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 continuationOptions 参数指定 TaskContinuationOptions 值无效。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, TaskContinuationOptions continuationOptions);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task`1,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationFunction:
            //     在 tasks 数组中的一个任务完成时要异步执行的函数委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的 System.Threading.CancellationToken。
            //
            //   continuationOptions:
            //     System.Threading.Tasks.TaskContinuationOptions 值,用于控制所创建的延续 System.Threading.Tasks.Task`1
            //     的行为。
            //
            //   scheduler:
            //     用于计划所创建的延续 System.Threading.Tasks.TaskScheduler 的 System.Threading.Tasks.Task`1。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            //   TResult:
            //     由 continuationFunction 委托返回并与创建的 System.Threading.Tasks.Task`1 关联的结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationFunction 参数为 null。 - 或 -
            //     时,将引发的异常 scheduler 参数为 null。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的一个任务完成时要执行的操作委托。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     时,将引发的异常中的元素之一 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationAction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的一个任务完成时要执行的操作委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的 System.Threading.CancellationToken。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     时,将引发的异常中的元素之一 tasks 数组已被释放。 - 或 - 提供 System.Threading.CancellationToken 被释放。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationAction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的一个任务完成时要执行的操作委托。
            //
            //   continuationOptions:
            //     System.Threading.Tasks.TaskContinuationOptions 值,用于控制所创建的延续 System.Threading.Tasks.Task
            //     的行为。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     时,将引发的异常中的元素之一 tasks 数组已被释放。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationAction 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 continuationOptions 参数指定 TaskContinuationOptions 值无效。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction, TaskContinuationOptions continuationOptions);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的一个任务完成时要执行的操作委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的 System.Threading.CancellationToken。
            //
            //   continuationOptions:
            //     System.Threading.Tasks.TaskContinuationOptions 值,用于控制所创建的延续 System.Threading.Tasks.Task
            //     的行为。
            //
            //   scheduler:
            //     用于计划所创建的延续 System.Threading.Tasks.TaskScheduler 的 System.Threading.Tasks.Task`1。
            //
            // 类型参数:
            //   TAntecedentResult:
            //     以前的 tasks 结果的类型。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 tasks 数组为 null。 - 或 - 时,将引发的异常 continuationAction 参数为 null。 - 或 - 时,将引发的异常
            //     scheduler 参数为 null。
            //
            //   T:System.ArgumentException:
            //     时,将引发的异常 tasks 数组包含一个 null 值。 - 或 - 时,将引发的异常 tasks 数组为空。
            public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建一个延续 System.Threading.Tasks.Task,它将在提供的组中的任何任务完成后马上开始。
            //
            // 参数:
            //   tasks:
            //     在一个任务完成时继续执行的任务所在的数组。
            //
            //   continuationAction:
            //     在 tasks 数组中的一个任务完成时要执行的操作委托。
            //
            //   cancellationToken:
            //     将指派给新的延续任务的 System.Threading.CancellationToken。
            //
            // 返回结果:
            //     新的延续 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     中的元素之一 tasks 数组已被释放。 - 或 - cancellationToken 已释放。
            //
            //   T:System.ArgumentNullException:
            //     tasks 数组是 null。 - 或 - continuationAction 参数为 null。
            //
            //   T:System.ArgumentException:
            //     tasks 数组包含 null 值。 - 或 - tasks 数组为空。
            public Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   arg2:
            //     传递给 beginMethod 委托的第二个参数。
            //
            //   arg3:
            //     传递给 beginMethod 委托的第三个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task`1 的行为。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第二个参数的类型。
            //
            //   TArg2:
            //     传递给 beginMethod 委托的第三个参数的类型。
            //
            //   TArg3:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task<TResult> FromAsync<TArg1, TArg2, TArg3, TResult>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   arg2:
            //     传递给 beginMethod 委托的第二个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第二个参数的类型。
            //
            //   TArg2:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            public Task<TResult> FromAsync<TArg1, TArg2, TResult>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, object state);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            public Task FromAsync(Func<AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, object state);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,它在指定的 System.IAsyncResult 完成时执行一个结束方法操作。
            //
            // 参数:
            //   asyncResult:
            //     IAsyncResult,完成它时将触发对 endMethod 的处理。
            //
            //   endMethod:
            //     用于处理完成的 asyncResult 的操作委托。
            //
            // 返回结果:
            //     表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 asyncResult 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            public Task FromAsync(IAsyncResult asyncResult, Action<IAsyncResult> endMethod);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,它在指定的 System.IAsyncResult 完成时执行一个结束方法操作。
            //
            // 参数:
            //   asyncResult:
            //     IAsyncResult,完成它时将触发对 endMethod 的处理。
            //
            //   endMethod:
            //     用于处理完成的 asyncResult 的操作委托。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task 的行为。
            //
            // 返回结果:
            //     表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 asyncResult 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task FromAsync(IAsyncResult asyncResult, Action<IAsyncResult> endMethod, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,它在指定的 System.IAsyncResult 完成时执行一个结束方法操作。
            //
            // 参数:
            //   asyncResult:
            //     IAsyncResult,完成它时将触发对 endMethod 的处理。
            //
            //   endMethod:
            //     用于处理完成的 asyncResult 的操作委托。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task 的行为。
            //
            //   scheduler:
            //     用于计划将执行结束方法的任务的 System.Threading.Tasks.TaskScheduler。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 asyncResult 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。 - 或 - 时,将引发的异常
            //     scheduler 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task FromAsync(IAsyncResult asyncResult, Action<IAsyncResult> endMethod, TaskCreationOptions creationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   arg2:
            //     传递给 beginMethod 委托的第二个参数。
            //
            //   arg3:
            //     传递给 beginMethod 委托的第三个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第二个参数的类型。
            //
            //   TArg2:
            //     传递给 beginMethod 委托的第三个参数的类型。
            //
            //   TArg3:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            public Task<TResult> FromAsync<TArg1, TArg2, TArg3, TResult>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task 的行为。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。
            public Task FromAsync(Func<AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, object state, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            public Task FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, object state);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task 的行为。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, object state, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   arg2:
            //     传递给 beginMethod 委托的第二个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task 的行为。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第二个参数的类型。
            //
            //   TArg2:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   arg2:
            //     传递给 beginMethod 委托的第二个参数。
            //
            //   arg3:
            //     传递给 beginMethod 委托的第三个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第二个参数的类型。
            //
            //   TArg2:
            //     传递给 beginMethod 委托的第三个参数的类型。
            //
            //   TArg3:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            public Task FromAsync<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   arg2:
            //     传递给 beginMethod 委托的第二个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第二个参数的类型。
            //
            //   TArg2:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            public Task FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, object state);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,它在指定的 System.IAsyncResult 完成时执行一个结束方法函数。
            //
            // 参数:
            //   asyncResult:
            //     IAsyncResult,完成它时将触发对 endMethod 的处理。
            //
            //   endMethod:
            //     用于处理完成的 asyncResult 的函数委托。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 asyncResult 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            public Task<TResult> FromAsync<TResult>(IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,它在指定的 System.IAsyncResult 完成时执行一个结束方法函数。
            //
            // 参数:
            //   asyncResult:
            //     IAsyncResult,完成它时将触发对 endMethod 的处理。
            //
            //   endMethod:
            //     用于处理完成的 asyncResult 的函数委托。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task`1 的行为。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 asyncResult 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task<TResult> FromAsync<TResult>(IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,它在指定的 System.IAsyncResult 完成时执行一个结束方法函数。
            //
            // 参数:
            //   asyncResult:
            //     IAsyncResult,完成它时将触发对 endMethod 的处理。
            //
            //   endMethod:
            //     用于处理完成的 asyncResult 的函数委托。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task`1 的行为。
            //
            //   scheduler:
            //     用于计划将执行结束方法的任务的 System.Threading.Tasks.TaskScheduler。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 asyncResult 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。 - 或 - 时,将引发的异常
            //     scheduler 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task<TResult> FromAsync<TResult>(IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod, TaskCreationOptions creationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            public Task<TResult> FromAsync<TResult>(Func<AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, object state);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task`1 的行为。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task<TResult> FromAsync<TResult>(Func<AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, object state, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            public Task<TResult> FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object state);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task`1 的行为。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task<TResult> FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object state, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task`1,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   arg2:
            //     传递给 beginMethod 委托的第二个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task`1 的行为。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第二个参数的类型。
            //
            //   TArg2:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task<TResult> FromAsync<TArg1, TArg2, TResult>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建一个 System.Threading.Tasks.Task,表示符合异步编程模型模式的成对的开始和结束方法。
            //
            // 参数:
            //   beginMethod:
            //     用于启动异步操作的委托。
            //
            //   endMethod:
            //     用于结束异步操作的委托。
            //
            //   arg1:
            //     传递给 beginMethod 委托的第一个参数。
            //
            //   arg2:
            //     传递给 beginMethod 委托的第二个参数。
            //
            //   arg3:
            //     传递给 beginMethod 委托的第三个参数。
            //
            //   state:
            //     一个包含由 beginMethod 委托使用的数据的对象。
            //
            //   creationOptions:
            //     TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task 的行为。
            //
            // 类型参数:
            //   TArg1:
            //     传递给 beginMethod 委托的第二个参数的类型。
            //
            //   TArg2:
            //     传递给 beginMethod 委托的第三个参数的类型。
            //
            //   TArg3:
            //     传递给 beginMethod 委托的第一个参数的类型。
            //
            // 返回结果:
            //     创建的表示异步操作的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 beginMethod 参数为 null。 - 或 - 时,将引发的异常 endMethod 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task FromAsync<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task`1。
            //
            // 参数:
            //   function:
            //     一个函数委托,可返回能够通过 System.Threading.Tasks.Task`1 获得的将来结果。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     function 参数为 null。
            public Task<TResult> StartNew<TResult>(Func<TResult> function);
            //
            // 摘要:
            //     创建并启动 任务。
            //
            // 参数:
            //   action:
            //     要异步执行的操作委托。
            //
            // 返回结果:
            //     已启动的任务。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     action 参数为 null。
            public Task StartNew(Action action);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task。
            //
            // 参数:
            //   action:
            //     要异步执行的操作委托。
            //
            //   cancellationToken:
            //     将指派给新任务的 System.Threading.Tasks.TaskFactory.CancellationToken。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     已释放提供的 System.Threading.CancellationToken。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 action 参数为 null。
            public Task StartNew(Action action, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task。
            //
            // 参数:
            //   action:
            //     要异步执行的操作委托。
            //
            //   state:
            //     一个包含由 action 委托使用的数据的对象。
            //
            //   cancellationToken:
            //     将指派给新 System.Threading.Tasks.Task 的 System.Threading.Tasks.TaskFactory.CancellationToken
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     已释放提供的 System.Threading.CancellationToken。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 action 参数为 null。
            public Task StartNew(Action<object> action, object state, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task。
            //
            // 参数:
            //   action:
            //     要异步执行的操作委托。
            //
            //   state:
            //     一个包含由 action 委托使用的数据的对象。
            //
            //   creationOptions:
            //     一个 TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task 的行为。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 action 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。
            public Task StartNew(Action<object> action, object state, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task。
            //
            // 参数:
            //   action:
            //     要异步执行的操作委托。
            //
            //   state:
            //     一个包含由 action 委托使用的数据的对象。
            //
            //   cancellationToken:
            //     将指派给新任务的 System.Threading.Tasks.TaskFactory.CancellationToken。
            //
            //   creationOptions:
            //     一个 TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task 的行为。
            //
            //   scheduler:
            //     用于计划所创建的 System.Threading.Tasks.TaskScheduler 的 System.Threading.Tasks.Task。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     已释放提供的 System.Threading.CancellationToken。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 action 参数为 null。 - 或 - 时,将引发的异常 scheduler 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task StartNew(Action<object> action, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task`1。
            //
            // 参数:
            //   function:
            //     一个函数委托,可返回能够通过 System.Threading.Tasks.Task`1 获得的将来结果。
            //
            //   cancellationToken:
            //     将指派给新 System.Threading.Tasks.Task 的 System.Threading.Tasks.TaskFactory.CancellationToken
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     已释放提供的 System.Threading.CancellationToken。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 function 参数为 null。
            public Task<TResult> StartNew<TResult>(Func<TResult> function, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task。
            //
            // 参数:
            //   action:
            //     要异步执行的操作委托。
            //
            //   cancellationToken:
            //     将指派给新 System.Threading.Tasks.Task 的 System.Threading.Tasks.TaskFactory.CancellationToken
            //
            //   creationOptions:
            //     一个 TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task 的行为。
            //
            //   scheduler:
            //     用于计划所创建的 System.Threading.Tasks.TaskScheduler 的 System.Threading.Tasks.Task。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     已释放提供的 System.Threading.CancellationToken。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 action 参数为 null。 - 或 - 时,将引发的异常 scheduler 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task StartNew(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task`1。
            //
            // 参数:
            //   function:
            //     一个函数委托,可返回能够通过 System.Threading.Tasks.Task`1 获得的将来结果。
            //
            //   cancellationToken:
            //     将指派给新任务的 System.Threading.Tasks.TaskFactory.CancellationToken。
            //
            //   creationOptions:
            //     一个 TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task`1 的行为。
            //
            //   scheduler:
            //     用于计划所创建的 System.Threading.Tasks.TaskScheduler 的 System.Threading.Tasks.Task`1。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     已释放提供的 System.Threading.CancellationToken。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 function 参数为 null。 - 或 - 时,将引发的异常 scheduler 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task<TResult> StartNew<TResult>(Func<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task`1。
            //
            // 参数:
            //   function:
            //     一个函数委托,可返回能够通过 System.Threading.Tasks.Task`1 获得的将来结果。
            //
            //   state:
            //     一个包含由 function 委托使用的数据的对象。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 function 参数为 null。
            public Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task`1。
            //
            // 参数:
            //   function:
            //     一个函数委托,可返回能够通过 System.Threading.Tasks.Task`1 获得的将来结果。
            //
            //   state:
            //     一个包含由 function 委托使用的数据的对象。
            //
            //   cancellationToken:
            //     将指派给新 System.Threading.Tasks.Task 的 System.Threading.Tasks.TaskFactory.CancellationToken
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     已释放提供的 System.Threading.CancellationToken。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 function 参数为 null。
            public Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state, CancellationToken cancellationToken);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task`1。
            //
            // 参数:
            //   function:
            //     一个函数委托,可返回能够通过 System.Threading.Tasks.Task`1 获得的将来结果。
            //
            //   state:
            //     一个包含由 function 委托使用的数据的对象。
            //
            //   creationOptions:
            //     一个 TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task`1 的行为。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 function 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task`1。
            //
            // 参数:
            //   function:
            //     一个函数委托,可返回能够通过 System.Threading.Tasks.Task`1 获得的将来结果。
            //
            //   state:
            //     一个包含由 function 委托使用的数据的对象。
            //
            //   cancellationToken:
            //     将指派给新任务的 System.Threading.Tasks.TaskFactory.CancellationToken。
            //
            //   creationOptions:
            //     一个 TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task`1 的行为。
            //
            //   scheduler:
            //     用于计划所创建的 System.Threading.Tasks.TaskScheduler 的 System.Threading.Tasks.Task`1。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ObjectDisposedException:
            //     已释放提供的 System.Threading.CancellationToken。
            //
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 function 参数为 null。 - 或 - 时,将引发的异常 scheduler 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task。
            //
            // 参数:
            //   action:
            //     要异步执行的操作委托。
            //
            //   creationOptions:
            //     一个 TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task 的行为。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 action 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。
            public Task StartNew(Action action, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task`1。
            //
            // 参数:
            //   function:
            //     一个函数委托,可返回能够通过 System.Threading.Tasks.Task`1 获得的将来结果。
            //
            //   creationOptions:
            //     一个 TaskCreationOptions 值,用于控制创建的 System.Threading.Tasks.Task`1 的行为。
            //
            // 类型参数:
            //   TResult:
            //     可通过 System.Threading.Tasks.Task`1 获得的结果的类型。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task`1。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     时,将引发的异常 function 参数为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     时,将引发的异常 creationOptions 参数指定 TaskCreationOptions 值无效。 时,将引发的异常 creationOptions
            //     参数指定 TaskCreationOptions 值无效。 有关详细信息,请参阅备注的 System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)
            public Task<TResult> StartNew<TResult>(Func<TResult> function, TaskCreationOptions creationOptions);
            //
            // 摘要:
            //     创建并启动 System.Threading.Tasks.Task。
            //
            // 参数:
            //   action:
            //     要异步执行的操作委托。
            //
            //   state:
            //     一个包含由 action 委托使用的数据的对象。
            //
            // 返回结果:
            //     已启动的 System.Threading.Tasks.Task。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     action 参数为 null。
            public Task StartNew(Action<object> action, object state);
        }
    }
    2、
    2.返回顶部
     
    3.返回顶部
     
    4.返回顶部
     
    5.返回顶部
     
     
    6.返回顶部
     
    warn 作者:ylbtech
    出处:http://ylbtech.cnblogs.com/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    springMVC源码分析
    世界近代史二
    世界近代历史
    UVA
    UVA
    UVA
    Web 前端开发学习之路(入门篇)
    01 Linux入门介绍
    2. Python基本知识
    1. 初识Python
  • 原文地址:https://www.cnblogs.com/storebook/p/12486715.html
Copyright © 2011-2022 走看看