Parameters
- buffer
- The buffer to write data from.
- offset
- The byte offset in buffer at which to begin writing from.
- count
- The maximum number of bytes to write.
Exception | Description |
---|---|
System.ArgumentNullException | buffer is null. |
System.NotSupportedException | The stream does not support writing. For additional information see System.IO.Stream.CanWrite. -or- The current position is closer than count bytes to the end of the stream, and the capacity cannot be modified. |
System.ArgumentException | offset subtracted from the buffer length is less than count. |
System.ArgumentOutOfRangeException | offset or count are negative. |
System.IO.IOException | An I/O error occurs. |
System.ObjectDisposedException | The current stream instance is closed. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2