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.

Declaration Syntax
| C# | Visual Basic | Visual C++ | J# |
public override void Write(
byte[] buffer,
int offset,
int count
)
Public Overrides Sub Write ( _
buffer As Byte(), _
offset As Integer, _
count As Integer _
)
public:
virtual void Write(
array<unsigned char>^ buffer,
int offset,
int count
) override
public void Write(
byte[] buffer,
int offset,
int count
)

Parameters
- buffer (array<Byte>[]()[][])
- An array of bytes. This method copies count bytes from buffer to the current stream.
- offset (Int32)
- The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
- count (Int32)
- The number of bytes to be written to the current stream.

Exceptions
| Exception | Condition |
|---|
| ArgumentException | The sum of offset and count is greater than the buffer length.
|
| ArgumentNullException | buffer is null.
|
| ArgumentOutOfRangeException | offset or count is negative.
|
| IOException | An I/O error occurs.
|
| NotSupportedException | The stream does not support writing.
|
| ObjectDisposedException | Methods were called after the stream was closed.
|
Assembly:
GigaSpaces.Core (Module: GigaSpaces.Core) Version: 16.2.0.0 (16.2.1)