Method WriteAllBytesAsync
WriteAllBytesAsync(Stream, Byte[])
Writes all bytes in the specified byte array to the stream.
Declaration
public static Task WriteAllBytesAsync(this Stream stream, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream. |
System.Byte[] | data | The bytes to be written. |
Returns
Type | Description |
---|---|
Task | The System.Threading.Tasks.Task instance that can be awaited. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |