Click or drag to resize
BinaryWriterWrite Method (Byte)
Writes a byte array to the underlying stream.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual void Write(
	byte[] buffer
)

Parameters

buffer
Type: SystemByte
A byte array containing the data to write.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
ObjectDisposedExceptionThe stream is closed.
ArgumentNullExceptionbuffer is null.
See Also