MobileForms Toolkit Documentation

ZipStream.BeginWrite Method 

Begins an asynchronous write.

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

Parameters

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

Return Value

An IAsyncResult that references the asynchronous write.

Remarks

This method overrides BeginWrite.

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

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

See Also

ZipStream Class | Resco.IO.Zip Namespace