MobileForms Toolkit Documentation

ZipStream.BeginRead Method 

Begins an asynchronous read.

public override IAsyncResult BeginRead(
byte[] array,
int offset,
int count,
AsyncCallback callback,
object state
);

Parameters

array
The buffer to read data into.
offset
The byte offset in array at which to begin reading.
count
The maximum number of bytes to read.
callback
The method to be called when the asynchronous read operation is completed.
state
A user-provided object that distinguishes this particular asynchronous read request from other requests.

Return Value

An IAsyncResult that references the asynchronous read.

Remarks

This method overrides BeginRead.

If a stream is closed or you pass an invalid argument, exceptions are thrown immediately from BeginRead. Errors that occur during an asynchronous read request, occur on the threadpool thread and become visible upon a call to EndRead.

EndRead must be called with this IAsyncResult to find out how many bytes were read.

See Also

ZipStream Class | Resco.IO.Zip Namespace