System.Net.WebClient.UploadProgressChanged Event

Occurs when an asynchronous upload operation successfully transfers some or all of the data.

Syntax

public event UploadProgressChangedEventHandler UploadProgressChanged

Remarks

This event is raised each time an asynchronous upload makes progress. This event is raised when uploads are started using any of the following methods.

WebClient.UploadDataAsync(Uri, Byte[])

Sends a byte array to the resource, without blocking the calling thread.

WebClient.UploadFileAsync(Uri, string)

Sends a local file to the resource, without blocking the calling thread.

WebClient.UploadValuesAsync(Uri, System.Collections.Specialized.NameValueCollection)

Sends a System.Collections.Specialized.NameValueCollection to the resource and returns a byte array containing any response, without blocking the calling thread.

The System.Net.UploadProgressChangedEventHandler is the delegate for this event. The System.Net.UploadProgressChangedEventArgs class provides the event handler with event data.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0