Mono Class Library: System.IO.FileStream Overview | MembersSystem.IO.FileStream.Write Method |
Writes a block of bytes from a specified byte array to the current stream. [Edit]
|
Type Reason ArgumentNullException array is null. [Edit] ArgumentException offset + count is greater than the length of array. [Edit] ArgumentOutOfRangeException offset or count is negative. [Edit] System.IO.IOException An I/O error occurred. [Edit] NotSupportedException The current stream does not support writing. [Edit] ObjectDisposedException An I/O error occurred. [Edit]
If the write operation is successful, the current position of the stream is advanced by the number of bytes written. If an exception occurs, the current position of the stream is unchanged.
Note:[Edit]Use the FileStream.CanWrite property to determine whether the current instance supports writing. For additional information, see Stream.CanWrite.
This method overrides Stream.Write(Byte[], int, int).
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0