Provides helper methods for sending data to and receiving data from a resource identified by a URI.
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| WebClient()()() | ||
| BaseAddress |
Gets or sets the base URI for requests made by a WebClient.
| |
| Credentials |
Gets or sets the network credentials that are sent to the host and used to authenticate the request.
| |
| Dispose()()() | Releases all resources used by the Component. (Inherited from Component.) | |
| Dispose(Boolean) | Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.) | |
| Disposed | Adds an event handler to listen to the Disposed event on the component. (Inherited from Component.) | |
| DownloadData(String) |
Downloads data at the specified URI as a Byte array.
| |
| DownloadData(Uri) |
Downloads data at the specified URI as a Byte array.
| |
| DownloadFile(String, String) |
Downloads the resource with the specified URI to a local file.
| |
| DownloadFile(Uri, String) |
Downloads the resource with the specified URI to a local file.
| |
| DownloadString(String) |
Downloads the specified resource as a String.
| |
| DownloadString(Uri) |
Downloads the specified resource as a String.
| |
| Encoding |
Gets and sets the Encoding used to upload and download strings.
| |
| Equals(Object) | (Inherited from Object.) | |
| Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) | |
| Finalize()()() | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) | |
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| GetWebRequest(Uri) |
Returns a WebRequest object for the specified resource.
| |
| GetWebResponse(WebRequest) |
Returns the WebResponse for the specified WebRequest.
| |
| Headers |
Gets or sets a collection of header name/value pairs associated with the request.
| |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Proxy |
Gets or sets the proxy used by this WebClient object.
| |
| Site | (Inherited from Component.) | |
| ToString()()() | (Inherited from Object.) | |
| UploadData(String, array<Byte>[]()[]) |
Uploads a data buffer to a resource identified by a URI.
| |
| UploadData(Uri, array<Byte>[]()[]) |
Uploads a data buffer to a resource identified by a URI.
| |
| UploadData(String, String, array<Byte>[]()[]) |
Uploads a data buffer to the specified resource, using the specified method.
| |
| UploadData(Uri, String, array<Byte>[]()[]) |
Uploads a data buffer to the specified resource, using the specified method.
| |
| UploadFile(String, String) |
Uploads the specified local file to a resource with the specified URI.
| |
| UploadFile(Uri, String) |
Uploads the specified local file to a resource with the specified URI.
| |
| UploadFile(String, String, String) |
Uploads the specified local file to the specified resource, using the specified method.
| |
| UploadFile(Uri, String, String) |
Uploads the specified local file to the specified resource, using the specified method.
| |
| UploadString(String, String) |
Uploads the specified string to the specified resource.
| |
| UploadString(Uri, String) |
Uploads the specified string to the specified resource.
| |
| UploadString(String, String, String) |
Uploads the specified string to the specified resource, using the specified method.
| |
| UploadString(Uri, String, String) |
Uploads the specified string to the specified resource, using the specified method.
| |
| UploadValues(String, NameValueCollection) |
Uploads the specified name/value collection to the resource identified by the specified URI.
| |
| UploadValues(Uri, NameValueCollection) |
Uploads the specified name/value collection to the resource identified by the specified URI.
| |
| UploadValues(String, String, NameValueCollection) |
Uploads the specified name/value collection to the resource identified by the specified URI, using the specified method.
| |
| UploadValues(Uri, String, NameValueCollection) |
Uploads the specified name/value collection to the resource identified by the specified URI, using the specified method.
|
| Object | |||
| MarshalByRefObject | |||
| Component | |||
| WebClient | |||
[!:System.Net.WebClient]