Uređivanje

Dijeli putem


WebClient.WriteStreamClosed Event

Definition

Caution

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

public:
 event System::Net::WriteStreamClosedEventHandler ^ WriteStreamClosed;
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public event System.Net.WriteStreamClosedEventHandler? WriteStreamClosed;
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public event System.Net.WriteStreamClosedEventHandler WriteStreamClosed;
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
member this.WriteStreamClosed : System.Net.WriteStreamClosedEventHandler 
Public Custom Event WriteStreamClosed As WriteStreamClosedEventHandler 

Event Type

Attributes

Remarks

Caution

WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete, and you shouldn't use them for new development. Use HttpClient instead.

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 how to handle events, see Handling and Raising Events.

Applies to