Stream.Write Method
When overridden in a derived class, this method writes a sequence of bytes to the current Stream object and advances the current position within this stream by the number of bytes written to it.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public virtual abstract void Write (
byte[] buffer,
intoffset,
intcount
)
Parameters
- buffer
An array of bytes from which the number of bytes specified in the buffer parameter are written to the current stream. - offset
The 0-based byte offset in the buffer at which copying bytes to the current stream is to begin. - count
The number of bytes to be written to the current stream.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.