Mono Class Library: System.IO.MemoryStream Overview | MembersSystem.IO.MemoryStream.WriteTo Method |
Writes the entire contents of the current System.IO.MemoryStream instance to a specified stream. [Edit]
|
- stream
- The System.IO.Stream to write the current memory stream to. [Edit]
Type Reason ArgumentNullException stream is null. [Edit] ObjectDisposedException The current or target stream is closed. [Edit]
Note: This method is equivalent to calling stream.Write(this.GetBuffer(), 0, this.GetBuffer().Length) and passing in the underlying buffer of the current instance.Operation
As described above. [Edit]
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0