Method Write
- Namespace
 - DSharpPlus.Net
 
- Assembly
 - DSharpPlus.dll
 
Write(byte[], int, int)
When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
public override void Write(byte[] buffer, int offset, int count)
Parameters
bufferbyte[]An array of bytes. This method copies
countbytes frombufferto the current stream.offsetintThe zero-based byte offset in
bufferat which to begin copying bytes to the current stream.countintThe number of bytes to be written to the current stream.
Exceptions
- ArgumentException
 The sum of
offsetandcountis greater than the buffer length.- ArgumentNullException
 bufferis null.- ArgumentOutOfRangeException
 offsetorcountis negative.- IOException
 An I/O error occurred, such as the specified file cannot be found.
- NotSupportedException
 The stream does not support writing.
- ObjectDisposedException
 Write(Byte[], Int32, Int32) was called after the stream was closed.