WebClient Methods

Include Protected Members
Include Inherited Members

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The WebClient type exposes the following members.

Methods

Name Description
CancelAsync Cancels a pending asynchronous operation.
DownloadStringAsync(Uri) Downloads the resource at the specified Uri as a string.
DownloadStringAsync(Uri, Object) Downloads the resource at the specified Uri as a string.
Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
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.)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetType Gets the Type of the current instance. (Inherited from Object.)
GetWebRequest Returns a WebRequest object for the specified resource.
GetWebResponse Returns the WebResponse for the specified WebRequest using the specified IAsyncResult.
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
OnDownloadProgressChanged Raises the DownloadProgressChanged event.
OnDownloadStringCompleted Raises the DownloadStringCompleted event.
OnOpenReadCompleted Raises the OpenReadCompleted event.
OnOpenWriteCompleted Raises the OpenWriteCompleted event.
OnUploadProgressChanged Raises the UploadProgressChanged event.
OnUploadStringCompleted Raises the UploadStringCompleted event.
OnWriteStreamClosed Raises the WriteStreamClosed event.
OpenReadAsync(Uri) Opens a readable stream to the specified resource.
OpenReadAsync(Uri, Object) Opens a readable stream to the specified resource.
OpenWriteAsync(Uri) Opens a stream for writing data to the specified resource. This method does not block the calling thread.
OpenWriteAsync(Uri, String) Opens a stream for writing data to the specified resource. This method does not block the calling thread.
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.
ToString Returns a string that represents the current object. (Inherited from Object.)
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.

Top

See Also

Reference

WebClient Class

System.Net Namespace