Closes the stream for reading and writing.
[Visual Basic] Overrides Public Sub Close() [C#] public override void Close(); [C++] public: override void Close(); [JScript] public override function Close();
The stream will not support reading nor writing after the current method is invoked. Following a call to Close, any operations on the stream may raise exceptions.
MemoryStream Class | MemoryStream Members | System.IO Namespace