MemoryStreamGetBuffer Method |
Returns the array of unsigned bytes from which this stream was created.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual byte[] GetBuffer()
Return Value
Type:
ByteThe 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 Exception | Condition |
---|
UnauthorizedAccessException | The MemoryStream instance was not created with a publicly visible buffer. |
See Also