The WebClient type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkWebClient()()()()
Initializes a new instance of the WebClient class.
Protected methodSupported by the .NET Compact FrameworkWebClient(HttpRequestCreator)
Initializes a new instance of the WebClient class with specified HTTP request creator. This enables sharing keep-alive connections between instances of WebClient and WebRequest. However please note that Settings, LogWriter and ValidatingCertificate properties are shared between all instances as well. This means that changing such property affects behavior of all instances as well.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkCancel
Cancels all currently running requests.
Public methodSupported by the .NET Compact FrameworkDispose
Disposes the WebClient object.
Public methodSupported by the .NET Compact FrameworkDownloadData(String)
Downloads data from provided URI.
Public methodSupported by the .NET Compact FrameworkDownloadData(Uri)
Downloads data from provided URI.
Public methodSupported by the .NET Compact FrameworkDownloadFile(String, String)
Downloads data from provided URI and save them to the file.
Public methodSupported by the .NET Compact FrameworkDownloadFile(Uri, String)
Downloads data from provided URI and save them to the file.
Public methodSupported by the .NET Compact FrameworkDownloadString(String)
Downloads a resource from provided URI as a string.
Public methodSupported by the .NET Compact FrameworkDownloadString(Uri)
Downloads a resource from provided URI as a string.
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHeaders(String)
Downloads headers for provided URI using HEAD request.
Public methodSupported by the .NET Compact FrameworkGetHeaders(Uri)
Downloads headers for provided URI using HEAD request.
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkOpenRead(String)
Opens a stream that contains data retrieved from provided URI.
Public methodSupported by the .NET Compact FrameworkOpenRead(Uri)
Opens a stream that contains data retrieved from provided URI.
Public methodSupported by the .NET Compact FrameworkOpenWrite(String)
Opens a stream that is used to send data to provided URI.
Public methodSupported by the .NET Compact FrameworkOpenWrite(Uri)
Opens a stream that is used to send data to provided URI.
Public methodSupported by the .NET Compact FrameworkOpenWrite(String, String)
Opens a stream that is used to send data to provided URI.
Public methodSupported by the .NET Compact FrameworkOpenWrite(Uri, String)
Opens a stream that is used to send data to provided URI.
Public methodSupported by the .NET Compact FrameworkSetSocketFactory
Sets the socket factory to be used to create communication sockets.
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkUploadData(String, array<Byte>[]()[][])
Uploads a data to provided URI and returns a response data of the upload operation.
Public methodSupported by the .NET Compact FrameworkUploadData(Uri, array<Byte>[]()[][])
Uploads a data to provided URI and returns a response data of the upload operation.
Public methodSupported by the .NET Compact FrameworkUploadData(String, String, array<Byte>[]()[][])
Uploads a data to provided URI and returns a response data of the upload operation.
Public methodSupported by the .NET Compact FrameworkUploadData(Uri, String, array<Byte>[]()[][])
Uploads a data to provided URI and returns a response data of the upload operation.
Public methodSupported by the .NET Compact FrameworkUploadFile(String, String)
Uploads a file to provided URI and returns a response data of the upload operation.
Public methodSupported by the .NET Compact FrameworkUploadFile(Uri, String)
Uploads a data to provided URI and returns a response data of the upload operation.
Public methodSupported by the .NET Compact FrameworkUploadFile(String, String, String)
Uploads a data to provided URI and returns a response data of the upload operation.
Public methodSupported by the .NET Compact FrameworkUploadFile(Uri, String, String)
Uploads a data to provided URI and returns a response data of the upload operation.
Public methodSupported by the .NET Compact FrameworkUploadString(String, String)
Uploads a string to provided URI as a new resource.
Public methodSupported by the .NET Compact FrameworkUploadString(Uri, String)
Uploads a string to provided URI as a new resource.
Public methodSupported by the .NET Compact FrameworkUploadString(String, String, String)
Uploads a string to provided URI as a new resource.
Public methodSupported by the .NET Compact FrameworkUploadString(Uri, String, String)
Uploads a string to provided URI as a new resource.
Public methodSupported by the .NET Compact FrameworkUploadValues(String, NameValueCollection)
Uploads a name/value collection to a specified URI.
Public methodSupported by the .NET Compact FrameworkUploadValues(Uri, NameValueCollection)
Uploads a name/value collection to a specified URI.
Public methodSupported by the .NET Compact FrameworkUploadValues(String, String, NameValueCollection)
Uploads a name/value collection to a specified URI.
Public methodSupported by the .NET Compact FrameworkUploadValues(Uri, String, NameValueCollection)
Uploads a name/value collection to a specified URI.

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkBaseAddress
Gets or sets the base address to simplify multiple requests to one server.
Public propertySupported by the .NET Compact FrameworkCredentials
Get or sets network credentials to identify a user.
Public propertySupported by the .NET Compact FrameworkEncoding
Gets or sets the encoding to be used for string upload and download.
Public propertySupported by the .NET Compact FrameworkHeaders
Get or sets a collection of HTTP headers to send with a request.
Public propertySupported by the .NET Compact FrameworkLogWriter
Gets or sets the LogWriter used by this object.
Public propertySupported by the .NET Compact FrameworkProxy
Gets or sets the network proxy to use to access a remote server.
Public propertySupported by the .NET Compact FrameworkResponseHeaders
Gets or sets a collection of HTTP headers associated with the response.
Public propertySupported by the .NET Compact FrameworkSettings
Gets TLS/SSL settings.
Public propertySupported by the .NET Compact FrameworkTimeout
Gets or sets the length of time in milliseconds before the request times out (specify -1 or 0 to indicate that the request does not time out; minimal value is 1000).

Events

  NameDescription
Public eventSupported by the .NET Compact FrameworkDownloadProgressChanged
Occurs when download progress has changed.
Public eventSupported by the .NET Compact FrameworkUploadProgressChanged
Occurs when upload progress has changed.
Public eventSupported by the .NET Compact FrameworkValidatingCertificate
Occurs when a server certificate needs to be validated.

See Also