Click or drag to resize
CloudFilesProviderCopyStream Method
Copy data from an input stream to an output stream.

Namespace: net.openstack.Providers.Rackspace
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public static void CopyStream(
	Stream input,
	Stream output,
	int bufferSize,
	Action<long> progressUpdated
)

Parameters

input
Type: System.IOStream
The input stream.
output
Type: System.IOStream
The output stream.
bufferSize
Type: SystemInt32
The size of the buffer to use for copying data.
progressUpdated
Type: SystemActionInt64
A callback for progress updates. If the value is , no progress updates are reported.
Exceptions
ExceptionCondition
ArgumentNullException If input is .

-or-

If output is .

ArgumentOutOfRangeExceptionIf bufferSize is less than or equal to 0.
Remarks
The argument to the callback method is the total number of bytes written to the output stream thus far. Note that Flush is not called on output prior to reporting a progress update, so data may remain in the stream's buffer.
Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also