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()()()() | Initializes a new instance of the WebClient class | |
| BaseAddress |
Gets or sets the base URI for requests made by a WebClient.
| |
| CancelAsync()()()() |
Cancels a pending asynchronous operation.
| |
| CanRaiseEvents |
Gets a value indicating whether the component can raise an event.
(Inherited from Component.) | |
| Container |
Gets the IContainer that contains the Component.
(Inherited from Component.) | |
| CreateObjRef(Type) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.) | |
| Credentials |
Gets or sets the network credentials that are sent to the host and used to authenticate the request.
| |
| DesignMode |
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.) | |
| 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 |
Occurs when the component is disposed by a call to the Dispose()()()() method.
(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.
| |
| DownloadDataAsync(Uri) |
Downloads the specified resource as a Byte array.
This method does not block the calling thread.
| |
| DownloadDataAsync(Uri, Object) |
Downloads the specified resource as a Byte array.
This method does not block the calling thread.
| |
| DownloadDataCompleted |
Occurs when an asynchronous data download operation completes.
| |
| 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.
| |
| DownloadFileAsync(Uri, String) |
Downloads, to a local file, the resource with the specified URI.
This method does not block the calling thread.
| |
| DownloadFileAsync(Uri, String, Object) |
Downloads, to a local file, the resource with the specified URI.
This method does not block the calling thread.
| |
| DownloadFileCompleted |
Occurs when an asynchronous file download operation completes.
| |
| DownloadProgressChanged |
Occurs when an asynchronous download operation successfully transfers some or all of the data.
| |
| DownloadString(String) |
Downloads the specified resource as a String.
| |
| DownloadString(Uri) |
Downloads the specified resource as a String.
| |
| DownloadStringAsync(Uri) |
Downloads the resource specified as a Uri. This method does not block the calling thread.
| |
| DownloadStringAsync(Uri, Object) |
Downloads the resource specified as a Uri. This method does not block the calling thread.
| |
| DownloadStringCompleted |
Occurs when an asynchronous resource-download operation completes.
| |
| 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.
(Inherited from Object.) | |
| GetLifetimeService()()()() |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| GetService(Type) | (Inherited from Component.) | |
| 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.
| |
| GetWebResponse(WebRequest, IAsyncResult) |
Returns the WebResponse for the specified WebRequest using the specified IAsyncResult.
| |
| Headers |
Gets or sets a collection of header name/value pairs associated with the request.
| |
| InitializeLifetimeService()()()() |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OnDownloadDataCompleted(DownloadDataCompletedEventArgs) |
Raises the DownloadDataCompleted event.
| |
| OnDownloadFileCompleted(AsyncCompletedEventArgs) |
Raises the DownloadFileCompleted event.
| |
| OnDownloadProgressChanged(DownloadProgressChangedEventArgs) |
Raises the DownloadProgressChanged event.
| |
| OnDownloadStringCompleted(DownloadStringCompletedEventArgs) |
Raises the DownloadStringCompleted event.
| |
| OnUploadDataCompleted(UploadDataCompletedEventArgs) |
Raises the UploadDataCompleted event.
| |
| OnUploadFileCompleted(UploadFileCompletedEventArgs) |
Raises the UploadFileCompleted event.
| |
| OnUploadProgressChanged(UploadProgressChangedEventArgs) |
Raises the UploadProgressChanged event.
| |
| OnUploadStringCompleted(UploadStringCompletedEventArgs) |
Raises the UploadStringCompleted event.
| |
| OnUploadValuesCompleted(UploadValuesCompletedEventArgs) |
Raises the UploadValuesCompleted event.
| |
| OpenRead(String) |
Opens a readable stream for the data downloaded from a resource with the URI specified as a String.
| |
| OpenRead(Uri) |
Opens a readable stream for the data downloaded from a resource with the URI specified as a Uri.
| |
| OpenWrite(String) |
Opens a stream for writing data to the specified resource.
| |
| OpenWrite(Uri) |
Opens a stream for writing data to the specified resource.
| |
| OpenWrite(String, String) |
Opens a stream for writing data to the specified resource, using the specified method.
| |
| OpenWrite(Uri, String) |
Opens a stream for writing data to the specified resource, using the specified method.
| |
| Proxy |
Gets or sets the proxy used by this WebClient object.
| |
| QueryString |
Gets or sets a collection of query name/value pairs associated with the request.
| |
| Site | (Inherited from Component.) | |
| ToString()()()() |
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.) | |
| 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.
| |
| UploadDataAsync(Uri, array<Byte>[]()[][]) |
Uploads a data buffer to a resource identified by a URI, using the specified method and identifying token.
| |
| UploadDataAsync(Uri, String, array<Byte>[]()[][]) |
Uploads a data buffer to a resource identified by a URI, using the specified method and identifying token.
| |
| UploadDataAsync(Uri, String, array<Byte>[]()[][], Object) |
Uploads a data buffer to a resource identified by a URI, using the specified method and identifying token.
| |
| UploadDataCompleted |
Occurs when an asynchronous data-upload operation completes.
| |
| 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.
| |
| UploadFileAsync(Uri, String) |
Uploads the specified local file to the specified resource, using the POST method.
This method does not block the calling thread.
| |
| UploadFileAsync(Uri, String, String) |
Uploads the specified local file to the specified resource, using the POST method.
This method does not block the calling thread.
| |
| UploadFileAsync(Uri, String, String, Object) |
Uploads the specified local file to the specified resource, using the POST method.
This method does not block the calling thread.
| |
| UploadFileCompleted |
Occurs when an asynchronous file-upload operation completes.
| |
| UploadProgressChanged |
Occurs when an asynchronous upload operation successfully transfers some or all of the data.
| |
| 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.
| |
| UploadStringAsync(Uri, String) |
Uploads the specified string to the specified resource.
This method does not block the calling thread.
| |
| UploadStringAsync(Uri, String, String) |
Uploads the specified string to the specified resource.
This method does not block the calling thread.
| |
| UploadStringAsync(Uri, String, String, Object) |
Uploads the specified string to the specified resource.
This method does not block the calling thread.
| |
| UploadStringCompleted |
Occurs when an asynchronous string-upload operation completes.
| |
| 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.
| |
| UploadValuesAsync(Uri, NameValueCollection) |
Uploads the data in the specified name/value collection to the resource identified by the specified URI, using the specified method.
This method does not block the calling thread, and allows the caller to pass an object to the method that is invoked when the operation completes.
| |
| UploadValuesAsync(Uri, String, NameValueCollection) |
Uploads the data in the specified name/value collection to the resource identified by the specified URI, using the specified method.
This method does not block the calling thread, and allows the caller to pass an object to the method that is invoked when the operation completes.
| |
| UploadValuesAsync(Uri, String, NameValueCollection, Object) |
Uploads the data in the specified name/value collection to the resource identified by the specified URI, using the specified method.
This method does not block the calling thread, and allows the caller to pass an object to the method that is invoked when the operation completes.
| |
| UploadValuesCompleted |
Occurs when an asynchronous upload of a name/value collection completes.
| |
| UseDefaultCredentials |
Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests.
|
Equivalent to System.Net.WebClient
| Object | |||
| MarshalByRefObject | |||
| Component | |||
| WebClient | |||