SIFWorks ADK 2.0
BeginCopyStream Method (inSource, inDestination, bufferSize, endHandler, state)
NamespacesEdustructures.UtilStreamsBeginCopyStream(Stream, Stream, Int32, EduAsyncHandler, Object)

[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
Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
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

Assembly: Edustructures.SifWorks.Adk (Module: Edustructures.SifWorks.Adk) Version: 2.0.0.10