System.IO.Compression.GZipStream.EndWrite Method

Handles the end of an asynchronous write operation. (Consider using the System.IO.Stream.WriteAsync(Byte[], int, int) method instead; see the Remarks section.)

Syntax

public override void EndWrite (IAsyncResult async_result)

Parameters

async_result
Documentation for this section has not yet been entered.

Remarks

Starting with the net_v45, you can perform asynchronous write operations by using the System.IO.Stream.WriteAsync(Byte[], int, int) method. The GZipStream.EndWrite(IAsyncResult) 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.EndWrite(IAsyncResult) method completes the asynchronous write operation started in the GZipStream.BeginWrite(Byte[], int, int, AsyncCallback, object) method.

Requirements

Namespace: System.IO.Compression
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0