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.
Namespace: Renci.SshNet.CommonAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
Parameters
- buffer
- Type:
System Byte
An array of bytes. This method copies count bytes from buffer to the current stream.
- offset
- Type:
System Int32
The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
- count
- Type:
System Int32
The number of bytes to be written to the current stream.
Exceptions
| Exception | Condition |
|---|---|
| An I/O error occurs. | |
| The stream does not support writing. | |
| Methods were called after the stream was closed. | |
| buffer is null. | |
| The sum of offset and count is greater than the buffer length. | |
| offset or count is negative. |
See Also