WebClient.OpenReadCompleted Event
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Occurs when an asynchronous resource-read operation is completed.
Namespace: System.Net
Assembly: System.Net (in System.Net.dll)
Syntax
'Declaration
Public Event OpenReadCompleted As OpenReadCompletedEventHandler
public event OpenReadCompletedEventHandler OpenReadCompleted
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.