AsyncInfo.Run Method

Include Protected Members
Include Inherited Members

For apps that target Windows Phone OS 7.0 and 7.1, do not use any members of this type in your app. If you do, your code will throw a MethodAccessException. This type is security-critical, which restricts it to internal use by the .NET Framework for Windows Phone class library.

[SECURITY CRITICAL]

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates and starts a Windows Runtime asynchronous action by using a function that generates a started task.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Run<(Of <(TResult>)>)(Func<(Of <(CancellationToken, Task<(Of <(TResult>)>)>)>)) Creates and starts a Windows Runtime asynchronous operation by using a function that generates a started task that returns results. The task can support cancellation.
Run(Func<(Of <(CancellationToken, Task>)>)) Creates and starts a Windows Runtime asynchronous action by using a function that generates a started task. The task can support cancellation.
Run<(Of <(TResult, TProgress>)>)(Func<(Of <(CancellationToken, IProgress<(Of <(TProgress>)>), Task<(Of <(TResult>)>)>)>)) Creates and starts a Windows Runtime asynchronous operation that includes progress updates, by using a function that generates a started task that returns results. The task can support cancellation and progress reporting.
Run<(Of <(TProgress>)>)(Func<(Of <(CancellationToken, IProgress<(Of <(TProgress>)>), Task>)>)) Creates and starts a Windows Runtime asynchronous action that includes progress updates, by using a function that generates a started task. The task can support cancellation and progress reporting.

Top

See Also

Reference

AsyncInfo Class

AsyncInfo Members

System.Runtime.InteropServices.WindowsRuntime Namespace