[This is preliminary documentation and is subject to change.]
Copies a stream asynchronously. This method is useful for copying data to a network stream because the network stream
will actually buffer at the hardware level and the calling thread will not have to block. when the asynchronous copy
has complete, the delegate specified by the endHandler argument will be called to complete the operation
| C# | Visual Basic | Visual C++ |
public static void BeginCopyStream( Stream inSource, Stream inDestination, int bufferSize, EduAsyncHandler endHandler, Object state )
Public Shared Sub BeginCopyStream ( _ inSource As Stream, _ inDestination As Stream, _ bufferSize As Integer, _ endHandler As EduAsyncHandler, _ state As Object _ )
public: static void BeginCopyStream ( Stream^ inSource, Stream^ inDestination, int bufferSize, EduAsyncHandler^ endHandler, Object^ state )
- inSource (Stream)
- The stream to copy from
- inDestination (Stream)
- The stream to copy to. Flush() will be called when the copy is complete
- bufferSize (Int32)
- endHandler (EduAsyncHandler)
- The delegate to call when the async copy operation is complete
- state (Object)
- The state, if any that the delegate would like returned to it