Редагувати

Поділитися через


WebClient.UploadValuesCompleted Event

Definition

Occurs when an asynchronous upload of a name/value collection completes.

public:
 event System::Net::UploadValuesCompletedEventHandler ^ UploadValuesCompleted;
public event System.Net.UploadValuesCompletedEventHandler? UploadValuesCompleted;
public event System.Net.UploadValuesCompletedEventHandler UploadValuesCompleted;
member this.UploadValuesCompleted : System.Net.UploadValuesCompletedEventHandler 
Public Custom Event UploadValuesCompleted As UploadValuesCompletedEventHandler 
Public Event UploadValuesCompleted As UploadValuesCompletedEventHandler 

Event Type

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 upload of a NameValueCollection object's data completes. These uploads are started by calling the UploadValuesAsync methods.

The UploadValuesCompletedEventHandler is the delegate for this event. The UploadValuesCompletedEventArgs class provides the event handler with event data.

For more information about how to handle events, see Handling and Raising Events.

Applies to