WindowsRuntimeStreamExtensions Class
May 02, 2013
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]
Contains extension methods for converting between streams in the Windows Runtime and managed streams in the .NET for Windows Store apps.
Namespace:
System.IO
Assembly: System.Runtime.WindowsRuntime (in System.Runtime.WindowsRuntime.dll)
The WindowsRuntimeStreamExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | AsInputStream | Converts a managed stream in the .NET for Windows Store apps to an input stream in the Windows Runtime. |
![]() ![]() | AsOutputStream | Converts a managed stream in the .NET for Windows Store apps to an output stream in the Windows Runtime. |
![]() ![]() | AsStream(IRandomAccessStream) | Converts a random access stream in the Windows Runtime to a managed stream in the .NET for Windows Store apps. |
![]() ![]() | AsStream(IRandomAccessStream, Int32) | Converts a random access stream in the Windows Runtime to a managed stream in the .NET for Windows Store apps using the specified buffer size. |
![]() ![]() | AsStreamForRead(IInputStream) | Converts an input stream in the Windows Runtime to a managed stream in the .NET for Windows Store apps. |
![]() ![]() | AsStreamForRead(IInputStream, Int32) | Converts an input stream in the Windows Runtime to a managed stream in the .NET for Windows Store apps using the specified buffer size. |
![]() ![]() | AsStreamForWrite(IOutputStream) | Converts an output stream in the Windows Runtime to a managed stream in the .NET for Windows Store apps. |
![]() ![]() | AsStreamForWrite(IOutputStream, Int32) | Converts an output stream in the Windows Runtime to a managed stream in the .NET for Windows Store apps using the specified buffer size. |

