Partager via


WebClient.OpenWriteCompleted Event

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Occurs when an asynchronous operation to open a stream to write data to a resource completes.

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

Syntax

'Declaration
Public Event OpenWriteCompleted As OpenWriteCompletedEventHandler
public event OpenWriteCompletedEventHandler OpenWriteCompleted

Remarks

This event is raised each time an asynchronous operation to open a stream that is used to send data to a resource completes. These operations are started by calling the OpenWriteAsync methods.

When the send is completed, the OpenWriteCompleted event is raised. The stream is available in the Result property of the OpenWriteCompletedEventArgs.

The OpenWriteCompletedEventHandler is the delegate for this event. The OpenWriteCompletedEventArgs class provides the event handler with event data.

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.