MSDN > Documentation > .NET > APIs > Networking > System.Net.WebClient

System.Net.WebClient Class

Provides a simple way to send data to and retrieve data from a resource identified by a URI.

Namespace

System.Net

Syntax

public class WebClient : Component

Remarks

The WebClient class provides easy access to resources over HTTP, FTP, and File protocols. It simplifies common tasks such as downloading files, uploading data, and making asynchronous requests.

This class is thread-safe. You can use multiple instances of WebClient in a single thread, or you can use a single instance in multiple threads.

For more advanced scenarios, consider using HttpClient.

Members

Constructors

Methods

Properties

Events

See Also