Returns the array of unsigned bytes from which this Stream was created.
[Visual Basic] Overridable Public Function GetBuffer() As Byte () [C#] public virtual byte[] GetBuffer(); [C++] public: virtual unsigned char* GetBuffer() []; [JScript] public function GetBuffer() : Byte[];
The array of unsigned bytes from which this Stream was created.
Exception Type | Condition |
---|---|
AccessException | The MemoryStream instance was not created with publicallyVisible set to true in its constructor. |
MemoryStream Class | MemoryStream Members | System.IO Namespace