WindowsRuntimeSystemExtensions Class
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. ]
Provides extension methods for converting between tasks and Windows Runtime asynchronous actions and operations.
This API is not CLS-compliant.
Inheritance Hierarchy
System..::.Object
System..::.WindowsRuntimeSystemExtensions
Namespace: System
Assembly: System.Runtime.WindowsRuntime (in System.Runtime.WindowsRuntime.dll)
Syntax
<CLSCompliantAttribute(False)> _
<SecurityCriticalAttribute> _
<ExtensionAttribute> _
Public NotInheritable Class WindowsRuntimeSystemExtensions
[CLSCompliantAttribute(false)]
[SecurityCriticalAttribute]
public static class WindowsRuntimeSystemExtensions
The WindowsRuntimeSystemExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
AsAsyncAction | Returns a Windows Runtime asynchronous action that represents a started task. | |
AsAsyncOperation<(Of <(TResult>)>) | Returns a Windows Runtime asynchronous operation that represents a started task that returns a result. | |
AsTask(IAsyncAction) | Returns a task that represents a Windows Runtime asynchronous action. | |
AsTask(IAsyncAction, CancellationToken) | Returns a task that represents a Windows Runtime asynchronous action that can be cancelled. | |
AsTask<(Of <(TProgress>)>)(IAsyncActionWithProgress<(Of <(TProgress>)>)) | Returns a task that represents a Windows Runtime asynchronous action. | |
AsTask<(Of <(TResult>)>)(IAsyncOperation<(Of <(TResult>)>)) | Returns a task that represents a Windows Runtime asynchronous operation returns a result. | |
AsTask<(Of <(TProgress>)>)(IAsyncActionWithProgress<(Of <(TProgress>)>), IProgress<(Of <(TProgress>)>)) | Returns a task that represents a Windows Runtime asynchronous action that reports progress. | |
AsTask<(Of <(TProgress>)>)(IAsyncActionWithProgress<(Of <(TProgress>)>), CancellationToken) | Returns a task that represents a Windows Runtime asynchronous action that can be cancelled. | |
AsTask<(Of <(TResult>)>)(IAsyncOperation<(Of <(TResult>)>), CancellationToken) | Returns a task that represents a Windows Runtime asynchronous operation that returns a result and can be cancelled. | |
AsTask<(Of <(TProgress>)>)(IAsyncActionWithProgress<(Of <(TProgress>)>), CancellationToken, IProgress<(Of <(TProgress>)>)) | Returns a task that represents a Windows Runtime asynchronous action that reports progress and can be cancelled. | |
AsTask<(Of <(TResult, TProgress>)>)(IAsyncOperationWithProgress<(Of <(TResult, TProgress>)>)) | Returns a task that represents a Windows Runtime asynchronous operation returns a result. | |
AsTask<(Of <(TResult, TProgress>)>)(IAsyncOperationWithProgress<(Of <(TResult, TProgress>)>), IProgress<(Of <(TProgress>)>)) | Returns a task that represents Windows Runtime asynchronous operation that returns a result and reports progress. | |
AsTask<(Of <(TResult, TProgress>)>)(IAsyncOperationWithProgress<(Of <(TResult, TProgress>)>), CancellationToken) | Returns a task that represents a Windows Runtime asynchronous operation that returns a result and can be cancelled. | |
AsTask<(Of <(TResult, TProgress>)>)(IAsyncOperationWithProgress<(Of <(TResult, TProgress>)>), CancellationToken, IProgress<(Of <(TProgress>)>)) | Returns a task that represents a Windows Runtime asynchronous operation that returns a result, reports progress, and can be cancelled. | |
GetAwaiter(IAsyncAction) | Infrastructure. Returns an object that awaits an asynchronous action. | |
GetAwaiter<(Of <(TProgress>)>)(IAsyncActionWithProgress<(Of <(TProgress>)>)) | Infrastructure. Returns an object that awaits an asynchronous action that reports progress. | |
GetAwaiter<(Of <(TResult>)>)(IAsyncOperation<(Of <(TResult>)>)) | Infrastructure. Returns an object that awaits an asynchronous operation that returns a result. | |
GetAwaiter<(Of <(TResult, TProgress>)>)(IAsyncOperationWithProgress<(Of <(TResult, TProgress>)>)) | Infrastructure. Returns an object that awaits an asynchronous operation that reports progress and returns a result. |
Top
Version Information
Windows Phone OS
Supported in: 8.1, 8.0
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.