WindowsRuntimeBufferExtensions.ToArray Method

Include Protected Members
Include Inherited Members

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 new array that is created from the contents of a specified buffer.

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

Overload List

  Name Description
ToArray(IBuffer) Returns a new array that is created from the contents of the specified buffer (Windows.Storage.Streams.IBuffer). The size of the array is the value of the Length property of the IBuffer.
ToArray(IBuffer, UInt32, Int32) Returns a new array that is created from the contents of the specified buffer (Windows.Storage.Streams.IBuffer), starting at a specified offset and including a specified number of bytes.

Top

See Also

Reference

WindowsRuntimeBufferExtensions Class

WindowsRuntimeBufferExtensions Members

System.Runtime.InteropServices.WindowsRuntime Namespace