MemoryStream: EndWrite

EndWrite

Signifies the end of an asynchronous write to the stream.



 Public Sub EndWrite(
	  ByVal AsyncResult As IAsyncResult )

Parameters

AsyncResult
[ByVal] IAsyncResult. The IAsyncResult returned from the BeginWrite function.

Remarks

This method is generally called anytime after BeginWrite for a MemoryStream. Since the MemoryStream uses memory for the data store, there is no need to wait for the data to be written. The BeginWrite/EndWrite calls are redundant and should not be used with the MemoryStream. Instead use the WriteBlock Method.

If any exceptions were caused during the reading then they will be thrown during the call to EndRead.

See Also

Project CorLib Overview

Class MemoryStream Overview