Method WriteAllBytes
WriteAllBytes(Stream, Byte[])
Writes all bytes in the specified byte array to the stream.
Declaration
public static void WriteAllBytes(this Stream stream, byte[] data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The stream. |
| System.Byte[] | data | The bytes to be written. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |