Share via


WindowsRuntimeStreamExtensions Class

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

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.

Inheritance Hierarchy

System..::.Object
  System.IO..::.WindowsRuntimeStreamExtensions

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

Syntax

<SecurityCriticalAttribute> _
<ExtensionAttribute> _
Public NotInheritable Class WindowsRuntimeStreamExtensions
[SecurityCriticalAttribute]
public static class WindowsRuntimeStreamExtensions

The WindowsRuntimeStreamExtensions type exposes the following members.

Methods

  Name Description
AsInputStream
AsOutputStream
AsStream(IRandomAccessStream)
AsStream(IRandomAccessStream, Int32)
AsStreamForRead(IInputStream)
AsStreamForRead(IInputStream, Int32)
AsStreamForWrite(IOutputStream)
AsStreamForWrite(IOutputStream, Int32)

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.

See Also

Reference

System.IO Namespace