Click or drag to resize
MemoryStreamGetBuffer Method
Returns the array of unsigned bytes from which this stream was created.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual byte[] GetBuffer()

Return Value

Type: Byte
The byte array from which this stream was created, or the underlying array if a byte array was not provided to the MemoryStream constructor during construction of the current instance.
Exceptions
ExceptionCondition
UnauthorizedAccessExceptionThe MemoryStream instance was not created with a publicly visible buffer.
See Also