Begins an asynchronous write operation. (Consider using the System.IO.Stream.WriteAsync(Byte[], int, int) method instead; see the Remarks section.)
An object that represents the asynchronous write operation, which could still be pending.
Starting with the net_v45, you can perform asynchronous write operations by using the System.IO.Stream.WriteAsync(Byte[], int, int) method. The GZipStream.BeginWrite(Byte[], int, int, AsyncCallback, object) method is still available in net_v45 to support legacy code; however, you can implement asynchronous I/O operations more easily by using the new async methods. For more information, see Asynchronous File I/O.
The GZipStream.BeginWrite(Byte[], int, int, AsyncCallback, object) method starts an asynchronous write operation to a System.IO.Compression.GZipStream stream object.
You must create a callback method that implements the AsyncCallback delegate and pass its name to the GZipStream.BeginWrite(Byte[], int, int, AsyncCallback, object) method.