WebClient.OpenReadCompleted Event

May 11, 2014

Occurs when an asynchronous resource-read operation is completed.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

public event OpenReadCompletedEventHandler OpenReadCompleted

The OpenReadAsync methods retrieve the specified resource as a readable stream. The resource is downloaded asynchronously. When the download is completed, the OpenReadCompleted event is raised. The stream is available in the Result property of the OpenReadCompletedEventArgs.

If the AllowReadStreamBuffering property is true, then the OpenReadCompleted event is raised once the entire response stream has been received and buffered into memory. Otherwise, the OpenReadCompleted event is raised as soon as the response stream is available for reading even if all data has not yet arrived. These operations are started by calling one of the OpenReadAsync methods.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft