StreamExtensionsCopyToAsync Method (Stream, Stream, Int32) |
Namespace: Rackspace.Threading
public static Task CopyToAsync( this Stream stream, Stream destination, int bufferSize )
Exception | Condition |
---|---|
ArgumentNullException |
If stream is . -or- If destination is . |
ArgumentOutOfRangeException |
If bufferSize is negative or zero. |
ObjectDisposedException |
If stream is disposed. -or- If destination is disposed. |
NotSupportedException |
If stream does not support reading. -or- If destination does not support writing. |
Copying begins at the current position in stream.