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 Overloaded. Releases the resources used by the Component.
Public method DownloadData Overloaded. Downloads with the specified URI as a Byte array.
Public method DownloadDataAsync Overloaded. Downloads the specified resource as a Byte array. These methods do not block the calling thread.
Public method DownloadFile Overloaded. Downloads the resource with the specified URI to a local file.
Public method DownloadFileAsync Overloaded. Downloads the specified resource to a local file. These methods do not block the calling thread.
Public method DownloadString Overloaded. Downloads the requested resource as a String. The resource to download may be specified as either String containing the URI or a Uri.
Public method DownloadStringAsync Overloaded. Downloads the resource specified as a String or a Uri. These methods do not block the calling thread.
Public method Equals 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 Overloaded. Returns the WebResponse for the specified WebRequest.
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone Overloaded.
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 Overloaded. Opens a readable stream for the data downloaded from a resource with the specified URI.
Public method OpenReadAsync Overloaded. Opens a readable stream containing the specified resource. These methods do not block the calling thread.
Public method OpenWrite Overloaded. Opens a stream for writing data to a resource with the specified URI.
Public method OpenWriteAsync Overloaded. Opens a stream for writing data to the specified resource. These methods do 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 Overloaded. Uploads a data buffer to a resource with the specified URI.
Public method UploadDataAsync Overloaded. Uploads a data buffer to a resource identified by a URI. This method does not block the calling thread.
Public method UploadFile Overloaded. Uploads a local file to a resource with the specified URI.
Public method UploadFileAsync Overloaded. Uploads the specified local file to the specified resource. These methods do not block the calling thread.
Public method UploadString Overloaded. Uploads the specified string to the specified resource.
Public method UploadStringAsync Overloaded. Uploads the specified string to the specified resource. These methods do not block the calling thread.
Public method UploadValues Overloaded. Uploads a name/value collection to a resource with the specified URI.
Public method UploadValuesAsync Overloaded. Uploads the specified name/value collection to the resource identified by the specified URI. These methods do not block the calling thread.
Top

Community Additions

ADD
Show:
© 2014 Microsoft