Export (0) Print
Expand All

WebClient Methods

The WebClient type exposes the following members.

  NameDescription
Public method CancelAsync Cancels a pending asynchronous operation.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose() Releases all resources used by the Component. (Inherited from Component.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.)
Public method DownloadData(String) Downloads the resource with the specified URI as a Byte array.
Public method DownloadData(Uri) Downloads the resource with the specified URI as a Byte array.
Public method DownloadDataAsync(Uri) Downloads the specified resource as a Byte array. This method does not block the calling thread.
Public method DownloadDataAsync(Uri, Object) Downloads the specified resource as a Byte array. This method does not block the calling thread.
Public method DownloadFile(String, String) Downloads the resource with the specified URI to a local file.
Public method DownloadFile(Uri, String) Downloads the resource with the specified URI to a local file.
Public method DownloadFileAsync(Uri, String) Downloads, to a local file, the resource with the specified URI. This method does not block the calling thread.
Public method DownloadFileAsync(Uri, String, Object) Downloads, to a local file, the resource with the specified URI. This method does not block the calling thread.
Public method DownloadString(String) Downloads the requested resource as a String. The resource to download is specified as a String containing the URI.
Public method DownloadString(Uri) Downloads the requested resource as a String. The resource to download is specified as a Uri.
Public method DownloadStringAsync(Uri) Downloads the resource specified as a Uri. This method does not block the calling thread.
Public method DownloadStringAsync(Uri, Object) Downloads the specified string to the specified resource. This method does not block the calling thread.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method GetWebRequest Returns a WebRequest object for the specified resource.
Protected method GetWebResponse(WebRequest) Returns the WebResponse for the specified WebRequest.
Protected method GetWebResponse(WebRequest, IAsyncResult) Returns the WebResponse for the specified WebRequest using the specified IAsyncResult.
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Protected method OnDownloadDataCompleted Raises the DownloadDataCompleted event.
Protected method OnDownloadFileCompleted Raises the DownloadFileCompleted event.
Protected method OnDownloadProgressChanged Raises the DownloadProgressChanged event.
Protected method OnDownloadStringCompleted Raises the DownloadStringCompleted event.
Protected method OnOpenReadCompleted Raises the OpenReadCompleted event.
Protected method OnOpenWriteCompleted Raises the OpenWriteCompleted event.
Protected method OnUploadDataCompleted Raises the UploadDataCompleted event.
Protected method OnUploadFileCompleted Raises the UploadFileCompleted event.
Protected method OnUploadProgressChanged Raises the UploadProgressChanged event.
Protected method OnUploadStringCompleted Raises the UploadStringCompleted event.
Protected method OnUploadValuesCompleted Raises the UploadValuesCompleted event.
Public method OpenRead(String) Opens a readable stream for the data downloaded from a resource with the URI specified as a String.
Public method OpenRead(Uri) Opens a readable stream for the data downloaded from a resource with the URI specified as a Uri
Public method OpenReadAsync(Uri) Opens a readable stream containing the specified resource. This method does not block the calling thread.
Public method OpenReadAsync(Uri, Object) Opens a readable stream containing the specified resource. This method does not block the calling thread.
Public method OpenWrite(String) Opens a stream for writing data to the specified resource.
Public method OpenWrite(Uri) Opens a stream for writing data to the specified resource.
Public method OpenWrite(String, String) Opens a stream for writing data to the specified resource, using the specified method.
Public method OpenWrite(Uri, String) Opens a stream for writing data to the specified resource, by using the specified method.
Public method OpenWriteAsync(Uri) Opens a stream for writing data to the specified resource. This method does not block the calling thread.
Public method OpenWriteAsync(Uri, String) Opens a stream for writing data to the specified resource. This method does not block the calling thread.
Public method OpenWriteAsync(Uri, String, Object) Opens a stream for writing data to the specified resource, using the specified method. This method does not block the calling thread.
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Public method UploadData(String, Byte[]) Uploads a data buffer to a resource identified by a URI.
Public method UploadData(Uri, Byte[]) Uploads a data buffer to a resource identified by a URI.
Public method UploadData(String, String, Byte[]) Uploads a data buffer to the specified resource, using the specified method.
Public method UploadData(Uri, String, Byte[]) Uploads a data buffer to the specified resource, using the specified method.
Public method UploadDataAsync(Uri, Byte[]) Uploads a data buffer to a resource identified by a URI, using the POST method. This method does not block the calling thread.
Public method UploadDataAsync(Uri, String, Byte[]) Uploads a data buffer to a resource identified by a URI, using the specified method. This method does not block the calling thread.
Public method UploadDataAsync(Uri, String, Byte[], Object) Uploads a data buffer to a resource identified by a URI, using the specified method and identifying token.
Public method UploadFile(String, String) Uploads the specified local file to a resource with the specified URI.
Public method UploadFile(Uri, String) Uploads the specified local file to a resource with the specified URI.
Public method UploadFile(String, String, String) Uploads the specified local file to the specified resource, using the specified method.
Public method UploadFile(Uri, String, String) Uploads the specified local file to the specified resource, using the specified method.
Public 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.
Public method 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.
Public method 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.
Public method UploadString(String, String) Uploads the specified string to the specified resource, using the POST method.
Public method UploadString(Uri, String) Uploads the specified string to the specified resource, using the POST method.
Public method UploadString(String, String, String) Uploads the specified string to the specified resource, using the specified method.
Public method UploadString(Uri, String, String) Uploads the specified string to the specified resource, using the specified method.
Public method UploadStringAsync(Uri, String) Uploads the specified string to the specified resource. This method does not block the calling thread.
Public method UploadStringAsync(Uri, String, String) Uploads the specified string to the specified resource. This method does not block the calling thread.
Public method UploadStringAsync(Uri, String, String, Object) Uploads the specified string to the specified resource. This method does not block the calling thread.
Public method UploadValues(String, NameValueCollection) Uploads the specified name/value collection to the resource identified by the specified URI.
Public method UploadValues(Uri, NameValueCollection) Uploads the specified name/value collection to the resource identified by the specified URI.
Public method UploadValues(String, String, NameValueCollection) Uploads the specified name/value collection to the resource identified by the specified URI, using the specified method.
Public method UploadValues(Uri, String, NameValueCollection) Uploads the specified name/value collection to the resource identified by the specified URI, using the specified method.
Public method UploadValuesAsync(Uri, NameValueCollection) Uploads the data in the specified name/value collection to the resource identified by the specified URI. This method does not block the calling thread.
Public method 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.
Public method 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.
Top

Community Additions

ADD
Show:
© 2014 Microsoft