WebClient Methods

July 28, 2014

The WebClient type exposes the following members.

  NameDescription
Public method CancelAsync Cancels a pending asynchronous operation.
Public method DownloadStringAsync(Uri) Downloads the resource at the specified Uri as a string.
Public method DownloadStringAsync(Uri, Object) Downloads the resource at the specified Uri as a string.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
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 Returns the WebResponse for the specified WebRequest using the specified IAsyncResult.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
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 OnUploadProgressChanged Raises the UploadProgressChanged event.
Protected method OnUploadStringCompleted Raises the UploadStringCompleted event.
Protected method OnWriteStreamClosed Raises the WriteStreamClosed event.
Public method OpenReadAsync(Uri) Opens a readable stream to the specified resource.
Public method OpenReadAsync(Uri, Object) Opens a readable stream to the specified resource.
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 that represents the current object. (Inherited from Object.)
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.
Top

Show:
© 2014 Microsoft