CloudFilesProviderCopyStream Method |
Copy data from an input stream to an output stream.
Namespace: net.openstack.Providers.RackspaceAssembly: 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
)
Public Shared Sub CopyStream (
input As Stream,
output As Stream,
bufferSize As Integer,
progressUpdated As Action(Of Long)
)
public:
static void CopyStream(
Stream^ input,
Stream^ output,
int bufferSize,
Action<long long>^ progressUpdated
)
static member CopyStream :
input : Stream *
output : Stream *
bufferSize : int *
progressUpdated : Action<int64> -> unit
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 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