namespace System
{
public static class <font color="#4bacc6">WindowsRuntimeSystemExtensions
</font> {
// IAsyncAction
public static <font color="#4bacc6">Task</font> AsTask(
this <font color="#4bacc6">IAsyncAction</font> source)
public static <font color="#4bacc6">Task</font> AsTask(
this <font color="#4bacc6">IAsyncAction</font> source,
<font color="#4bacc6">CancellationToken</font> cancellationToken)
// IAsyncActionWithProgress
public static <font color="#4bacc6">Task</font> AsTask<TProgress>(
this <font color="#4bacc6">IAsyncActionWithProgress</font><TProgress> source)
public static <font color="#4bacc6">Task</font> AsTask<TProgress>(
this <font color="#4bacc6">IAsyncActionWithProgress</font><TProgress> source,
<font color="#4bacc6">IProgress</font><TProgress> progress)
public static <font color="#4bacc6">Task</font> AsTask<TProgress>(
this <font color="#4bacc6">IAsyncActionWithProgress</font><TProgress> source,
<font color="#4bacc6">CancellationToken</font> cancellationToken)
public static <font color="#4bacc6">Task</font> AsTask<TProgress>(
this <font color="#4bacc6">IAsyncActionWithProgress</font><TProgress> source,
<font color="#4bacc6">CancellationToken</font> cancellationToken,
<font color="#4bacc6">IProgress</font><TProgress> progress)
// IAsyncOperation
public static <font color="#4bacc6">Task</font> AsTask(
this <font color="#4bacc6">IAsyncOperation</font> source)
public static <font color="#4bacc6">Task</font> AsTask(
this <font color="#4bacc6">IAsyncOperation</font> source,
<font color="#4bacc6">CancellationToken</font> cancellationToken)
// IAsyncOperationWithProgress
public static <font color="#4bacc6">Task</font> AsTask(
this <font color="#4bacc6">IAsyncOperationWithProgress</font> source)
public static <font color="#4bacc6">Task</font> AsTask(
this <font color="#4bacc6">IAsyncOperationWithProgress</font> source,
<font color="#4bacc6">IProgress</font><TProgress> progress)
public static <font color="#4bacc6">Task</font> AsTask(
this I<font color="#4bacc6">AsyncOperationWithProgress</font> source,
<font color="#4bacc6">CancellationToken</font> cancellationToken)
public static <font color="#4bacc6">Task</font> AsTask(
this <font color="#4bacc6">IAsyncOperationWithProgress</font> source,
<font color="#4bacc6">CancellationToken</font> cancellationToken,
<font color="#4bacc6">IProgress</font><TProgress> progress)
...
}
}</pre>