GetWindowsRuntimeBuffer Method

WindowsRuntimeBufferExtensions.GetWindowsRuntimeBuffer Method

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. ]

Returns a Windows.Storage.Streams.IBuffer interface that represents the same memory as a specified memory stream.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member GetWindowsRuntimeBuffer(MemoryStream) Returns a Windows.Storage.Streams.IBuffer interface that represents the same memory as the specified memory stream.
Public method Static member GetWindowsRuntimeBuffer(MemoryStream, Int32, Int32) Returns a Windows.Storage.Streams.IBuffer interface that represents a region within the memory that the specified memory stream represents.
Top

Show:
© 2017 Microsoft