WindowsRuntimeSystemExtensions Class

July 28, 2014

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]

Provides extension methods for converting between tasks and Windows Runtime asynchronous actions and operations.

This API is not CLS-compliant. 

System.Object
  System.WindowsRuntimeSystemExtensions

Namespace:  System
Assembly:  System.Runtime.WindowsRuntime (in System.Runtime.WindowsRuntime.dll)

[CLSCompliantAttribute(false)]
[SecurityCriticalAttribute]
public static class WindowsRuntimeSystemExtensions

The WindowsRuntimeSystemExtensions type exposes the following members.

  NameDescription
Public methodStatic memberAsAsyncActionReturns a Windows Runtime asynchronous action that represents a started task.
Public methodStatic memberAsAsyncOperation<TResult>Returns a Windows Runtime asynchronous operation that represents a started task that returns a result.
Public methodStatic memberAsTask(IAsyncAction)Returns a task that represents a Windows Runtime asynchronous action.
Public methodStatic memberAsTask(IAsyncAction, CancellationToken)Returns a task that represents a Windows Runtime asynchronous action that can be cancelled.
Public methodStatic memberAsTask<TProgress>(IAsyncActionWithProgress<TProgress>)Returns a task that represents a Windows Runtime asynchronous action.
Public methodStatic memberAsTask<TResult>(IAsyncOperation<TResult>)Returns a task that represents a Windows Runtime asynchronous operation returns a result.
Public methodStatic memberAsTask<TProgress>(IAsyncActionWithProgress<TProgress>, IProgress<TProgress>)Returns a task that represents a Windows Runtime asynchronous action that reports progress.
Public methodStatic memberAsTask<TProgress>(IAsyncActionWithProgress<TProgress>, CancellationToken)Returns a task that represents a Windows Runtime asynchronous action that can be cancelled.
Public methodStatic memberAsTask<TResult>(IAsyncOperation<TResult>, CancellationToken)Returns a task that represents a Windows Runtime asynchronous operation that returns a result and can be cancelled.
Public methodStatic memberAsTask<TProgress>(IAsyncActionWithProgress<TProgress>, CancellationToken, IProgress<TProgress>)Returns a task that represents a Windows Runtime asynchronous action that reports progress and can be cancelled.
Public methodStatic memberAsTask<TResult, TProgress>(IAsyncOperationWithProgress<TResult, TProgress>)Returns a task that represents a Windows Runtime asynchronous operation returns a result.
Public methodStatic memberAsTask<TResult, TProgress>(IAsyncOperationWithProgress<TResult, TProgress>, IProgress<TProgress>)Returns a task that represents Windows Runtime asynchronous operation that returns a result and reports progress.
Public methodStatic memberAsTask<TResult, TProgress>(IAsyncOperationWithProgress<TResult, TProgress>, CancellationToken)Returns a task that represents a Windows Runtime asynchronous operation that returns a result and can be cancelled.
Public methodStatic memberAsTask<TResult, TProgress>(IAsyncOperationWithProgress<TResult, TProgress>, CancellationToken, IProgress<TProgress>)Returns a task that represents a Windows Runtime asynchronous operation that returns a result, reports progress, and can be cancelled.
Public methodStatic memberGetAwaiter(IAsyncAction)Infrastructure. Returns an object that awaits an asynchronous action.
Public methodStatic memberGetAwaiter<TProgress>(IAsyncActionWithProgress<TProgress>)Infrastructure. Returns an object that awaits an asynchronous action that reports progress.
Public methodStatic memberGetAwaiter<TResult>(IAsyncOperation<TResult>)Infrastructure. Returns an object that awaits an asynchronous operation that returns a result.
Public methodStatic memberGetAwaiter<TResult, TProgress>(IAsyncOperationWithProgress<TResult, TProgress>)Infrastructure. Returns an object that awaits an asynchronous operation that reports progress and returns a result.
Top

Windows Phone OS

Supported in: 8.1, 8.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2014 Microsoft