Reads all the bytes from the current stream and writes them to a destination stream.
Copying begins at the current position in the current stream.
| Exception | Condition |
|---|---|
| ArgumentNullException | destination is a null reference (Nothing in Visual Basic). |
| NotSupportedException | The current stream does not support reading.
-or- destination does not support writing. |