WebClient::WriteStreamClosed Event

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

Occurs when an asynchronous operation to write data to a resource using a write stream is closed.

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

[ObsoleteAttribute("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", 
event WriteStreamClosedEventHandler^ WriteStreamClosed {
	void add(WriteStreamClosedEventHandler^ value);
	void remove(WriteStreamClosedEventHandler^ value);

This event is raised each time an asynchronous operation used to write data to a resource using a write stream is closed. These operations result from calls to the OpenWriteTaskAsync methods.

The WriteStreamClosedEventHandler is the delegate for this event. The WriteStreamClosedEventArgs class provides the event handler with event data.

For more information about handling events, see NIB: Consuming Events.

.NET Framework
Available since 4.5
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top