mscorlib(4.0.0.0) API with additions
|
Provides common methods for sending data to and receiving data from a resource identified by a URI. More...
Public Member Functions | |
WebClient () | |
Initializes a new instance of the T:System.Net.WebClient class. More... | |
byte [] | DownloadData (string address) |
Downloads the resource as a T:System.Byte array from the URI specified. More... | |
byte [] | DownloadData (Uri address) |
Downloads the resource as a T:System.Byte array from the URI specified. More... | |
void | DownloadFile (string address, string fileName) |
Downloads the resource with the specified URI to a local file. More... | |
void | DownloadFile (Uri address, string fileName) |
Downloads the resource with the specified URI to a local file. More... | |
Stream | OpenRead (string address) |
Opens a readable stream for the data downloaded from a resource with the URI specified as a T:System.String. More... | |
Stream | OpenRead (Uri address) |
Opens a readable stream for the data downloaded from a resource with the URI specified as a T:System.Uri More... | |
Stream | OpenWrite (string address) |
Opens a stream for writing data to the specified resource. More... | |
Stream | OpenWrite (Uri address) |
Opens a stream for writing data to the specified resource. More... | |
Stream | OpenWrite (string address, string method) |
Opens a stream for writing data to the specified resource, using the specified method. More... | |
Stream | OpenWrite (Uri address, string method) |
Opens a stream for writing data to the specified resource, by using the specified method. More... | |
byte [] | UploadData (string address, byte[] data) |
Uploads a data buffer to a resource identified by a URI. More... | |
byte [] | UploadData (Uri address, byte[] data) |
Uploads a data buffer to a resource identified by a URI. More... | |
byte [] | UploadData (string address, string method, byte[] data) |
Uploads a data buffer to the specified resource, using the specified method. More... | |
byte [] | UploadData (Uri address, string method, byte[] data) |
Uploads a data buffer to the specified resource, using the specified method. More... | |
byte [] | UploadFile (string address, string fileName) |
Uploads the specified local file to a resource with the specified URI. More... | |
byte [] | UploadFile (Uri address, string fileName) |
Uploads the specified local file to a resource with the specified URI. More... | |
byte [] | UploadFile (string address, string method, string fileName) |
Uploads the specified local file to the specified resource, using the specified method. More... | |
byte [] | UploadFile (Uri address, string method, string fileName) |
Uploads the specified local file to the specified resource, using the specified method. More... | |
byte [] | UploadValues (string address, NameValueCollection data) |
Uploads the specified name/value collection to the resource identified by the specified URI. More... | |
byte [] | UploadValues (Uri address, NameValueCollection data) |
Uploads the specified name/value collection to the resource identified by the specified URI. More... | |
byte [] | UploadValues (string address, string method, NameValueCollection data) |
Uploads the specified name/value collection to the resource identified by the specified URI, using the specified method. More... | |
byte [] | UploadValues (Uri address, string method, NameValueCollection data) |
Uploads the specified name/value collection to the resource identified by the specified URI, using the specified method. More... | |
string | UploadString (string address, string data) |
Uploads the specified string to the specified resource, using the POST method. More... | |
string | UploadString (Uri address, string data) |
Uploads the specified string to the specified resource, using the POST method. More... | |
string | UploadString (string address, string method, string data) |
Uploads the specified string to the specified resource, using the specified method. More... | |
string | UploadString (Uri address, string method, string data) |
Uploads the specified string to the specified resource, using the specified method. More... | |
string | DownloadString (string address) |
Downloads the requested resource as a T:System.String. The resource to download is specified as a T:System.String containing the URI. More... | |
string | DownloadString (Uri address) |
Downloads the requested resource as a T:System.String. The resource to download is specified as a T:System.Uri. More... | |
void | OpenReadAsync (Uri address) |
Opens a readable stream containing the specified resource. This method does not block the calling thread. More... | |
void | OpenReadAsync (Uri address, object userToken) |
Opens a readable stream containing the specified resource. This method does not block the calling thread. More... | |
void | OpenWriteAsync (Uri address) |
Opens a stream for writing data to the specified resource. This method does not block the calling thread. More... | |
void | OpenWriteAsync (Uri address, string method) |
Opens a stream for writing data to the specified resource. This method does not block the calling thread. More... | |
void | OpenWriteAsync (Uri address, string method, object userToken) |
Opens a stream for writing data to the specified resource, using the specified method. This method does not block the calling thread. More... | |
void | DownloadStringAsync (Uri address) |
Downloads the resource specified as a T:System.Uri. This method does not block the calling thread. More... | |
void | DownloadStringAsync (Uri address, object userToken) |
Downloads the specified string to the specified resource. This method does not block the calling thread. More... | |
void | DownloadDataAsync (Uri address) |
Downloads the resource as a T:System.Byte array from the URI specified as an asynchronous operation. More... | |
void | DownloadDataAsync (Uri address, object userToken) |
Downloads the resource as a T:System.Byte array from the URI specified as an asynchronous operation. More... | |
void | DownloadFileAsync (Uri address, string fileName) |
Downloads, to a local file, the resource with the specified URI. This method does not block the calling thread. More... | |
void | DownloadFileAsync (Uri address, string fileName, object userToken) |
Downloads, to a local file, the resource with the specified URI. This method does not block the calling thread. More... | |
void | UploadStringAsync (Uri address, string data) |
Uploads the specified string to the specified resource. This method does not block the calling thread. More... | |
void | UploadStringAsync (Uri address, string method, string data) |
Uploads the specified string to the specified resource. This method does not block the calling thread. More... | |
void | UploadStringAsync (Uri address, string method, string data, object userToken) |
Uploads the specified string to the specified resource. This method does not block the calling thread. More... | |
void | UploadDataAsync (Uri address, byte[] data) |
Uploads a data buffer to a resource identified by a URI, using the POST method. This method does not block the calling thread. More... | |
void | UploadDataAsync (Uri address, string method, byte[] data) |
Uploads a data buffer to a resource identified by a URI, using the specified method. This method does not block the calling thread. More... | |
void | UploadDataAsync (Uri address, string method, byte[] data, object userToken) |
Uploads a data buffer to a resource identified by a URI, using the specified method and identifying token. More... | |
void | UploadFileAsync (Uri address, string fileName) |
Uploads the specified local file to the specified resource, using the POST method. This method does not block the calling thread. More... | |
void | UploadFileAsync (Uri address, string method, string fileName) |
Uploads the specified local file to the specified resource, using the POST method. This method does not block the calling thread. More... | |
void | UploadFileAsync (Uri address, string method, string fileName, object userToken) |
Uploads the specified local file to the specified resource, using the POST method. This method does not block the calling thread. More... | |
void | UploadValuesAsync (Uri address, NameValueCollection data) |
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. More... | |
void | UploadValuesAsync (Uri address, string method, NameValueCollection data) |
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. More... | |
void | UploadValuesAsync (Uri address, string method, NameValueCollection data, object userToken) |
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. More... | |
void | CancelAsync () |
Cancels a pending asynchronous operation. More... | |
Task< string > | DownloadStringTaskAsync (string address) |
Downloads the resource as a T:System.String from the URI specified as an asynchronous operation using a task object. More... | |
Task< string > | DownloadStringTaskAsync (Uri address) |
Downloads the resource as a T:System.String from the URI specified as an asynchronous operation using a task object. More... | |
Task< Stream > | OpenReadTaskAsync (string address) |
Opens a readable stream containing the specified resource as an asynchronous operation using a task object. More... | |
Task< Stream > | OpenReadTaskAsync (Uri address) |
Opens a readable stream containing the specified resource as an asynchronous operation using a task object. More... | |
Task< Stream > | OpenWriteTaskAsync (string address) |
Opens a stream for writing data to the specified resource as an asynchronous operation using a task object. More... | |
Task< Stream > | OpenWriteTaskAsync (Uri address) |
Opens a stream for writing data to the specified resource as an asynchronous operation using a task object. More... | |
Task< Stream > | OpenWriteTaskAsync (string address, string method) |
Opens a stream for writing data to the specified resource as an asynchronous operation using a task object. More... | |
Task< Stream > | OpenWriteTaskAsync (Uri address, string method) |
Opens a stream for writing data to the specified resource as an asynchronous operation using a task object. More... | |
Task< string > | UploadStringTaskAsync (string address, string data) |
Uploads the specified string to the specified resource as an asynchronous operation using a task object. More... | |
Task< string > | UploadStringTaskAsync (Uri address, string data) |
Uploads the specified string to the specified resource as an asynchronous operation using a task object. More... | |
Task< string > | UploadStringTaskAsync (string address, string method, string data) |
Uploads the specified string to the specified resource as an asynchronous operation using a task object. More... | |
Task< string > | UploadStringTaskAsync (Uri address, string method, string data) |
Uploads the specified string to the specified resource as an asynchronous operation using a task object. More... | |
Task< byte[]> | DownloadDataTaskAsync (string address) |
Downloads the resource as a T:System.Byte array from the URI specified as an asynchronous operation using a task object. More... | |
Task< byte[]> | DownloadDataTaskAsync (Uri address) |
Downloads the resource as a T:System.Byte array from the URI specified as an asynchronous operation using a task object. More... | |
Task | DownloadFileTaskAsync (string address, string fileName) |
Downloads the specified resource to a local file as an asynchronous operation using a task object. More... | |
Task | DownloadFileTaskAsync (Uri address, string fileName) |
Downloads the specified resource to a local file as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadDataTaskAsync (string address, byte[] data) |
Uploads a data buffer that contains a T:System.Byte array to the URI specified as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadDataTaskAsync (Uri address, byte[] data) |
Uploads a data buffer that contains a T:System.Byte array to the URI specified as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadDataTaskAsync (string address, string method, byte[] data) |
Uploads a data buffer that contains a T:System.Byte array to the URI specified as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadDataTaskAsync (Uri address, string method, byte[] data) |
Uploads a data buffer that contains a T:System.Byte array to the URI specified as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadFileTaskAsync (string address, string fileName) |
Uploads the specified local file to a resource as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadFileTaskAsync (Uri address, string fileName) |
Uploads the specified local file to a resource as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadFileTaskAsync (string address, string method, string fileName) |
Uploads the specified local file to a resource as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadFileTaskAsync (Uri address, string method, string fileName) |
Uploads the specified local file to a resource as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadValuesTaskAsync (string address, NameValueCollection data) |
Uploads the specified name/value collection to the resource identified by the specified URI as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadValuesTaskAsync (string address, string method, NameValueCollection data) |
Uploads the specified name/value collection to the resource identified by the specified URI as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadValuesTaskAsync (Uri address, NameValueCollection data) |
Uploads the specified name/value collection to the resource identified by the specified URI as an asynchronous operation using a task object. More... | |
Task< byte[]> | UploadValuesTaskAsync (Uri address, string method, NameValueCollection data) |
Uploads the specified name/value collection to the resource identified by the specified URI as an asynchronous operation using a task object. More... | |
![]() | |
void | Dispose () |
Releases all resources used by the T:System.ComponentModel.Component. More... | |
override string | ToString () |
Returns a T:System.String containing the name of the T:System.ComponentModel.Component, if any. This method should not be overridden. More... | |
![]() | |
object | GetLifetimeService () |
Retrieves the current lifetime service object that controls the lifetime policy for this instance. More... | |
virtual object | InitializeLifetimeService () |
Obtains a lifetime service object to control the lifetime policy for this instance. More... | |
virtual ObjRef | CreateObjRef (Type requestedType) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. More... | |
Public Attributes | |
bool | IsBusy => m_AsyncOp != null |
Gets whether a Web request is in progress. More... | |
Protected Member Functions | |
virtual void | OnWriteStreamClosed (WriteStreamClosedEventArgs e) |
Raises the E:System.Net.WebClient.WriteStreamClosed event. More... | |
virtual WebRequest | GetWebRequest (Uri address) |
Returns a T:System.Net.WebRequest object for the specified resource. More... | |
virtual WebResponse | GetWebResponse (WebRequest request) |
Returns the T:System.Net.WebResponse for the specified T:System.Net.WebRequest. More... | |
virtual WebResponse | GetWebResponse (WebRequest request, IAsyncResult result) |
Returns the T:System.Net.WebResponse for the specified T:System.Net.WebRequest using the specified T:System.IAsyncResult. More... | |
virtual void | OnOpenReadCompleted (OpenReadCompletedEventArgs e) |
Raises the E:System.Net.WebClient.OpenReadCompleted event. More... | |
virtual void | OnOpenWriteCompleted (OpenWriteCompletedEventArgs e) |
Raises the E:System.Net.WebClient.OpenWriteCompleted event. More... | |
virtual void | OnDownloadStringCompleted (DownloadStringCompletedEventArgs e) |
Raises the E:System.Net.WebClient.DownloadStringCompleted event. More... | |
virtual void | OnDownloadDataCompleted (DownloadDataCompletedEventArgs e) |
Raises the E:System.Net.WebClient.DownloadDataCompleted event. More... | |
virtual void | OnDownloadFileCompleted (AsyncCompletedEventArgs e) |
Raises the E:System.Net.WebClient.DownloadFileCompleted event. More... | |
virtual void | OnUploadStringCompleted (UploadStringCompletedEventArgs e) |
Raises the E:System.Net.WebClient.UploadStringCompleted event. More... | |
virtual void | OnUploadDataCompleted (UploadDataCompletedEventArgs e) |
Raises the E:System.Net.WebClient.UploadDataCompleted event. More... | |
virtual void | OnUploadFileCompleted (UploadFileCompletedEventArgs e) |
Raises the E:System.Net.WebClient.UploadFileCompleted event. More... | |
virtual void | OnUploadValuesCompleted (UploadValuesCompletedEventArgs e) |
Raises the E:System.Net.WebClient.UploadValuesCompleted event. More... | |
virtual void | OnDownloadProgressChanged (DownloadProgressChangedEventArgs e) |
Raises the E:System.Net.WebClient.DownloadProgressChanged event. More... | |
virtual void | OnUploadProgressChanged (UploadProgressChangedEventArgs e) |
Raises the E:System.Net.WebClient.UploadProgressChanged event. More... | |
![]() | |
virtual void | Dispose (bool disposing) |
Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally releases the managed resources. More... | |
virtual object | GetService (Type service) |
Returns an object that represents a service provided by the T:System.ComponentModel.Component or by its T:System.ComponentModel.Container. More... | |
![]() | |
MarshalByRefObject | MemberwiseClone (bool cloneIdentity) |
Creates a shallow copy of the current T:System.MarshalByRefObject object. More... | |
Properties | |
bool | AllowReadStreamBuffering [get, set] |
Gets or sets a value that indicates whether to buffer the data read from the Internet resource for a T:System.Net.WebClient instance. More... | |
bool | AllowWriteStreamBuffering [get, set] |
Gets or sets a value that indicates whether to buffer the data written to the Internet resource for a T:System.Net.WebClient instance. More... | |
Encoding | Encoding [get, set] |
Gets and sets the T:System.Text.Encoding used to upload and download strings. More... | |
string | BaseAddress [get, set] |
Gets or sets the base URI for requests made by a T:System.Net.WebClient. More... | |
ICredentials | Credentials [get, set] |
Gets or sets the network credentials that are sent to the host and used to authenticate the request. More... | |
bool? | UseDefaultCredentials [get, set] |
Gets or sets a T:System.Boolean value that controls whether the P:System.Net.CredentialCache.DefaultCredentials are sent with requests. More... | |
WebHeaderCollection | Headers [get, set] |
Gets or sets a collection of header name/value pairs associated with the request. More... | |
NameValueCollection | QueryString [get, set] |
Gets or sets a collection of query name/value pairs associated with the request. More... | |
WebHeaderCollection | ResponseHeaders [get] |
Gets a collection of header name/value pairs associated with the response. More... | |
IWebProxy | Proxy [get, set] |
Gets or sets the proxy used by this T:System.Net.WebClient object. More... | |
RequestCachePolicy | CachePolicy [get, set] |
Gets or sets the application's cache policy for any resources obtained by this WebClient instance using T:System.Net.WebRequest objects. More... | |
WriteStreamClosedEventHandler | WriteStreamClosed |
Occurs when an asynchronous operation to write data to a resource using a write stream is closed. More... | |
![]() | |
EventHandlerList | Events [get] |
Gets the list of event handlers that are attached to this T:System.ComponentModel.Component. More... | |
virtual ISite | Site [get, set] |
Gets or sets the T:System.ComponentModel.ISite of the T:System.ComponentModel.Component. More... | |
IContainer? | Container [get] |
Gets the T:System.ComponentModel.IContainer that contains the T:System.ComponentModel.Component. More... | |
bool??? | DesignMode [get] |
Gets a value that indicates whether the T:System.ComponentModel.Component is currently in design mode. More... | |
EventHandler | Disposed |
Occurs when the component is disposed by a call to the M:System.ComponentModel.Component.Dispose method. More... | |
![]() | |
ISite | Site [get, set] |
Gets or sets the T:System.ComponentModel.ISite associated with the T:System.ComponentModel.IComponent. More... | |
Events | |
OpenReadCompletedEventHandler | OpenReadCompleted |
Occurs when an asynchronous operation to open a stream containing a resource completes. More... | |
OpenWriteCompletedEventHandler | OpenWriteCompleted |
Occurs when an asynchronous operation to open a stream to write data to a resource completes. More... | |
DownloadStringCompletedEventHandler | DownloadStringCompleted |
Occurs when an asynchronous resource-download operation completes. More... | |
DownloadDataCompletedEventHandler | DownloadDataCompleted |
Occurs when an asynchronous data download operation completes. More... | |
AsyncCompletedEventHandler | DownloadFileCompleted |
Occurs when an asynchronous file download operation completes. More... | |
UploadStringCompletedEventHandler | UploadStringCompleted |
Occurs when an asynchronous string-upload operation completes. More... | |
UploadDataCompletedEventHandler | UploadDataCompleted |
Occurs when an asynchronous data-upload operation completes. More... | |
UploadFileCompletedEventHandler | UploadFileCompleted |
Occurs when an asynchronous file-upload operation completes. More... | |
UploadValuesCompletedEventHandler | UploadValuesCompleted |
Occurs when an asynchronous upload of a name/value collection completes. More... | |
DownloadProgressChangedEventHandler | DownloadProgressChanged |
Occurs when an asynchronous download operation successfully transfers some or all of the data. More... | |
UploadProgressChangedEventHandler | UploadProgressChanged |
Occurs when an asynchronous upload operation successfully transfers some or all of the data. More... | |
![]() | |
EventHandler | Disposed |
Represents the method that handles the E:System.ComponentModel.IComponent.Disposed event of a component. More... | |
Additional Inherited Members | |
![]() | |
virtual bool | CanRaiseEvents => true |
Gets a value indicating whether the component can raise an event. More... | |
Provides common methods for sending data to and receiving data from a resource identified by a URI.
Definition at line 17 of file WebClient.cs.
System.Net.WebClient.WebClient | ( | ) |
Initializes a new instance of the T:System.Net.WebClient class.
Definition at line 804 of file WebClient.cs.
void System.Net.WebClient.CancelAsync | ( | ) |
Cancels a pending asynchronous operation.
Definition at line 3282 of file WebClient.cs.
byte [] System.Net.WebClient.DownloadData | ( | string | address | ) |
Downloads the resource as a T:System.Byte array from the URI specified.
address | The URI from which to download data. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading data. |
T:System.NotSupportedException | The method has been called simultaneously on multiple threads. |
Definition at line 916 of file WebClient.cs.
byte [] System.Net.WebClient.DownloadData | ( | Uri | address | ) |
Downloads the resource as a T:System.Byte array from the URI specified.
address | The URI represented by the T:System.Uri object, from which to download data. |
T:System.ArgumentNullException | The address parameter is null . |
Definition at line 929 of file WebClient.cs.
void System.Net.WebClient.DownloadDataAsync | ( | Uri | address | ) |
Downloads the resource as a T:System.Byte array from the URI specified as an asynchronous operation.
address | A T:System.Uri containing the URI to download. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
Definition at line 2627 of file WebClient.cs.
void System.Net.WebClient.DownloadDataAsync | ( | Uri | address, |
object | userToken | ||
) |
Downloads the resource as a T:System.Byte array from the URI specified as an asynchronous operation.
address | A T:System.Uri containing the URI to download. |
userToken | A user-defined object that is passed to the method invoked when the asynchronous operation completes. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
Definition at line 2638 of file WebClient.cs.
Task<byte[]> System.Net.WebClient.DownloadDataTaskAsync | ( | string | address | ) |
Downloads the resource as a T:System.Byte array from the URI specified as an asynchronous operation using a task object.
address | The URI of the resource to download. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
Definition at line 3534 of file WebClient.cs.
Downloads the resource as a T:System.Byte array from the URI specified as an asynchronous operation using a task object.
address | The URI of the resource to download. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
Definition at line 3546 of file WebClient.cs.
void System.Net.WebClient.DownloadFile | ( | string | address, |
string | fileName | ||
) |
Downloads the resource with the specified URI to a local file.
address | The URI from which to download data. |
fileName | The name of the local file that is to receive the data. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- filename is null or F:System.String.Empty.-or-The file does not exist.-or- An error occurred while downloading data. |
T:System.NotSupportedException | The method has been called simultaneously on multiple threads. |
Definition at line 991 of file WebClient.cs.
void System.Net.WebClient.DownloadFile | ( | Uri | address, |
string | fileName | ||
) |
Downloads the resource with the specified URI to a local file.
address | The URI specified as a T:System.String, from which to download data. |
fileName | The name of the local file that is to receive the data. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- filename is null or F:System.String.Empty.-or- The file does not exist. -or- An error occurred while downloading data. |
T:System.NotSupportedException | The method has been called simultaneously on multiple threads. |
Definition at line 1007 of file WebClient.cs.
void System.Net.WebClient.DownloadFileAsync | ( | Uri | address, |
string | fileName | ||
) |
Downloads, to a local file, the resource with the specified URI. This method does not block the calling thread.
address | The URI of the resource to download. |
fileName | The name of the file to be placed on the local computer. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
T:System.InvalidOperationException | The local file specified by fileName is in use by another thread. |
Definition at line 2703 of file WebClient.cs.
void System.Net.WebClient.DownloadFileAsync | ( | Uri | address, |
string | fileName, | ||
object | userToken | ||
) |
Downloads, to a local file, the resource with the specified URI. This method does not block the calling thread.
address | The URI of the resource to download. |
fileName | The name of the file to be placed on the local computer. |
userToken | A user-defined object that is passed to the method invoked when the asynchronous operation completes. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
T:System.InvalidOperationException | The local file specified by fileName is in use by another thread. |
Definition at line 2716 of file WebClient.cs.
Task System.Net.WebClient.DownloadFileTaskAsync | ( | string | address, |
string | fileName | ||
) |
Downloads the specified resource to a local file as an asynchronous operation using a task object.
address | The URI of the resource to download. |
fileName | The name of the file to be placed on the local computer. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
T:System.InvalidOperationException | The local file specified by fileName is in use by another thread. |
Definition at line 3579 of file WebClient.cs.
Downloads the specified resource to a local file as an asynchronous operation using a task object.
address | The URI of the resource to download. |
fileName | The name of the file to be placed on the local computer. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
T:System.InvalidOperationException | The local file specified by fileName is in use by another thread. |
Definition at line 3593 of file WebClient.cs.
string System.Net.WebClient.DownloadString | ( | string | address | ) |
Downloads the requested resource as a T:System.String. The resource to download is specified as a T:System.String containing the URI.
address | A T:System.String containing the URI to download. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
T:System.NotSupportedException | The method has been called simultaneously on multiple threads. |
Definition at line 1731 of file WebClient.cs.
string System.Net.WebClient.DownloadString | ( | Uri | address | ) |
Downloads the requested resource as a T:System.String. The resource to download is specified as a T:System.Uri.
address | A T:System.Uri object containing the URI to download. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
T:System.NotSupportedException | The method has been called simultaneously on multiple threads. |
Definition at line 1746 of file WebClient.cs.
void System.Net.WebClient.DownloadStringAsync | ( | Uri | address | ) |
Downloads the resource specified as a T:System.Uri. This method does not block the calling thread.
address | A T:System.Uri containing the URI to download. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
Definition at line 2553 of file WebClient.cs.
void System.Net.WebClient.DownloadStringAsync | ( | Uri | address, |
object | userToken | ||
) |
Downloads the specified string to the specified resource. This method does not block the calling thread.
address | A T:System.Uri containing the URI to download. |
userToken | A user-defined object that is passed to the method invoked when the asynchronous operation completes. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
Definition at line 2564 of file WebClient.cs.
Task<string> System.Net.WebClient.DownloadStringTaskAsync | ( | string | address | ) |
Downloads the resource as a T:System.String from the URI specified as an asynchronous operation using a task object.
address | The URI of the resource to download. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
Definition at line 3296 of file WebClient.cs.
Downloads the resource as a T:System.String from the URI specified as an asynchronous operation using a task object.
address | The URI of the resource to download. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. |
Definition at line 3308 of file WebClient.cs.
|
protectedvirtual |
Returns a T:System.Net.WebRequest object for the specified resource.
address | A T:System.Uri that identifies the resource to request. |
Definition at line 866 of file WebClient.cs.
|
protectedvirtual |
Returns the T:System.Net.WebResponse for the specified T:System.Net.WebRequest.
request | A T:System.Net.WebRequest that is used to obtain the response. |
Definition at line 896 of file WebClient.cs.
|
protectedvirtual |
Returns the T:System.Net.WebResponse for the specified T:System.Net.WebRequest using the specified T:System.IAsyncResult.
request | A T:System.Net.WebRequest that is used to obtain the response. |
result | An T:System.IAsyncResult object obtained from a previous call to M:System.Net.WebRequest.BeginGetResponse(System.AsyncCallback,System.Object) . |
Definition at line 905 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.DownloadDataCompleted event.
e | A T:System.Net.DownloadDataCompletedEventArgs object that contains event data. |
Definition at line 2602 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.DownloadFileCompleted event.
e | An T:System.ComponentModel.AsyncCompletedEventArgs object containing event data. |
Definition at line 2676 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.DownloadProgressChanged event.
e | A T:System.Net.DownloadProgressChangedEventArgs object containing event data. |
Definition at line 3870 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.DownloadStringCompleted event.
e | A T:System.Net.DownloadStringCompletedEventArgs object containing event data. |
Definition at line 2512 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.OpenReadCompleted event.
e | A T:System.Net.OpenReadCompletedEventArgs object containing event data. |
Definition at line 2307 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.OpenWriteCompleted event.
e | A T:System.Net.OpenWriteCompletedEventArgs object containing event data. |
Definition at line 2402 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.UploadDataCompleted event.
e | A T:System.Net.UploadDataCompletedEventArgs object containing event data. |
Definition at line 2917 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.UploadFileCompleted event.
e | An T:System.Net.UploadFileCompletedEventArgs object containing event data. |
Definition at line 3037 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.UploadProgressChanged event.
e | An T:System.Net.UploadProgressChangedEventArgs object containing event data. |
Definition at line 3880 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.UploadStringCompleted event.
e | An T:System.Net.UploadStringCompletedEventArgs object containing event data. |
Definition at line 2761 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.UploadValuesCompleted event.
e | A T:System.Net.UploadValuesCompletedEventArgs object containing event data. |
Definition at line 3161 of file WebClient.cs.
|
protectedvirtual |
Raises the E:System.Net.WebClient.WriteStreamClosed event.
e | A T:System.Net.WriteStreamClosedEventArgs object containing event data. |
Definition at line 859 of file WebClient.cs.
Stream System.Net.WebClient.OpenRead | ( | string | address | ) |
Opens a readable stream for the data downloaded from a resource with the URI specified as a T:System.String.
address | The URI specified as a T:System.String from which to download data. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, address is invalid.-or- An error occurred while downloading data. |
Definition at line 1070 of file WebClient.cs.
Opens a readable stream for the data downloaded from a resource with the URI specified as a T:System.Uri
address | The URI specified as a T:System.Uri from which to download data. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, address is invalid.-or- An error occurred while downloading data. |
Definition at line 1084 of file WebClient.cs.
void System.Net.WebClient.OpenReadAsync | ( | Uri | address | ) |
Opens a readable stream containing the specified resource. This method does not block the calling thread.
address | The URI of the resource to retrieve. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. -or- An error occurred while opening the stream. |
Definition at line 2352 of file WebClient.cs.
void System.Net.WebClient.OpenReadAsync | ( | Uri | address, |
object | userToken | ||
) |
Opens a readable stream containing the specified resource. This method does not block the calling thread.
address | The URI of the resource to retrieve. |
userToken | A user-defined object that is passed to the method invoked when the asynchronous operation completes. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. -or- An error occurred while opening the stream. |
Definition at line 2363 of file WebClient.cs.
Opens a readable stream containing the specified resource as an asynchronous operation using a task object.
address | The URI of the resource to retrieve. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. -or- An error occurred while opening the stream. |
Definition at line 3339 of file WebClient.cs.
Opens a readable stream containing the specified resource as an asynchronous operation using a task object.
address | The URI of the resource to retrieve. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while downloading the resource. -or- An error occurred while opening the stream. |
Definition at line 3351 of file WebClient.cs.
Stream System.Net.WebClient.OpenWrite | ( | string | address | ) |
Opens a stream for writing data to the specified resource.
address | The URI of the resource to receive the data. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- An error occurred while opening the stream. |
Definition at line 1131 of file WebClient.cs.
Opens a stream for writing data to the specified resource.
address | The URI of the resource to receive the data. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- An error occurred while opening the stream. |
Definition at line 1145 of file WebClient.cs.
Stream System.Net.WebClient.OpenWrite | ( | string | address, |
string | method | ||
) |
Opens a stream for writing data to the specified resource, using the specified method.
address | The URI of the resource to receive the data. |
method | The method used to send the data to the resource. If null, the default is POST for http and STOR for ftp. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- An error occurred while opening the stream. |
Definition at line 1156 of file WebClient.cs.
Opens a stream for writing data to the specified resource, by using the specified method.
address | The URI of the resource to receive the data. |
method | The method used to send the data to the resource. If null, the default is POST for http and STOR for ftp. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- An error occurred while opening the stream. |
Definition at line 1171 of file WebClient.cs.
void System.Net.WebClient.OpenWriteAsync | ( | Uri | address | ) |
Opens a stream for writing data to the specified resource. This method does not block the calling thread.
address | The URI of the resource to receive the data. |
T:System.ArgumentNullException | The address parameter is null . |
Definition at line 2446 of file WebClient.cs.
void System.Net.WebClient.OpenWriteAsync | ( | Uri | address, |
string | method | ||
) |
Opens a stream for writing data to the specified resource. This method does not block the calling thread.
address | The URI of the resource to receive the data. |
method | The method used to send the data to the resource. If null, the default is POST for http and STOR for ftp. |
T:System.ArgumentNullException | The address parameter is null . |
Definition at line 2456 of file WebClient.cs.
void System.Net.WebClient.OpenWriteAsync | ( | Uri | address, |
string | method, | ||
object | userToken | ||
) |
Opens a stream for writing data to the specified resource, using the specified method. This method does not block the calling thread.
address | The URI of the resource to receive the data. |
method | The method used to send the data to the resource. If null, the default is POST for http and STOR for ftp. |
userToken | A user-defined object that is passed to the method invoked when the asynchronous operation completes |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream. |
Definition at line 2468 of file WebClient.cs.
Opens a stream for writing data to the specified resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the data. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream. |
Definition at line 3382 of file WebClient.cs.
Opens a stream for writing data to the specified resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the data. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream. |
Definition at line 3394 of file WebClient.cs.
Opens a stream for writing data to the specified resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the data. |
method | The method used to send the data to the resource. If null, the default is POST for http and STOR for ftp. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream. |
Definition at line 3407 of file WebClient.cs.
Opens a stream for writing data to the specified resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the data. |
method | The method used to send the data to the resource. If null, the default is POST for http and STOR for ftp. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream. |
Definition at line 3420 of file WebClient.cs.
byte [] System.Net.WebClient.UploadData | ( | string | address, |
byte [] | data | ||
) |
Uploads a data buffer to a resource identified by a URI.
address | The URI of the resource to receive the data. |
data | The data buffer to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- data is null . -or-An error occurred while sending the data.-or- There was no response from the server hosting the resource. |
Definition at line 1225 of file WebClient.cs.
byte [] System.Net.WebClient.UploadData | ( | Uri | address, |
byte [] | data | ||
) |
Uploads a data buffer to a resource identified by a URI.
address | The URI of the resource to receive the data. |
data | The data buffer to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- data is null . -or-An error occurred while sending the data.-or- There was no response from the server hosting the resource. |
Definition at line 1241 of file WebClient.cs.
byte [] System.Net.WebClient.UploadData | ( | string | address, |
string | method, | ||
byte [] | data | ||
) |
Uploads a data buffer to the specified resource, using the specified method.
address | The URI of the resource to receive the data. |
method | The HTTP method used to send the data to the resource. If null, the default is POST for http and STOR for ftp. |
data | The data buffer to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- data is null .-or- An error occurred while uploading the data.-or- There was no response from the server hosting the resource. |
Definition at line 1254 of file WebClient.cs.
byte [] System.Net.WebClient.UploadData | ( | Uri | address, |
string | method, | ||
byte [] | data | ||
) |
Uploads a data buffer to the specified resource, using the specified method.
address | The URI of the resource to receive the data. |
method | The HTTP method used to send the data to the resource. If null, the default is POST for http and STOR for ftp. |
data | The data buffer to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- data is null .-or- An error occurred while uploading the data.-or- There was no response from the server hosting the resource. |
Definition at line 1271 of file WebClient.cs.
void System.Net.WebClient.UploadDataAsync | ( | Uri | address, |
byte [] | data | ||
) |
Uploads a data buffer to a resource identified by a URI, using the POST method. This method does not block the calling thread.
address | The URI of the resource to receive the data. |
data | The data buffer to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource. |
Definition at line 2957 of file WebClient.cs.
void System.Net.WebClient.UploadDataAsync | ( | Uri | address, |
string | method, | ||
byte [] | data | ||
) |
Uploads a data buffer to a resource identified by a URI, using the specified method. This method does not block the calling thread.
address | The URI of the resource to receive the data. |
method | The method used to send the data to the resource. If null , the default is POST for http and STOR for ftp. |
data | The data buffer to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource. |
Definition at line 2969 of file WebClient.cs.
void System.Net.WebClient.UploadDataAsync | ( | Uri | address, |
string | method, | ||
byte [] | data, | ||
object | userToken | ||
) |
Uploads a data buffer to a resource identified by a URI, using the specified method and identifying token.
address | The URI of the resource to receive the data. |
method | The method used to send the data to the resource. If null , the default is POST for http and STOR for ftp. |
data | The data buffer to send to the resource. |
userToken | A user-defined object that is passed to the method invoked when the asynchronous operation completes. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource. |
Definition at line 2982 of file WebClient.cs.
Task<byte[]> System.Net.WebClient.UploadDataTaskAsync | ( | string | address, |
byte [] | data | ||
) |
Uploads a data buffer that contains a T:System.Byte array to the URI specified as an asynchronous operation using a task object.
address | The URI of the resource to receive the data. |
data | The data buffer to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource. |
Definition at line 3625 of file WebClient.cs.
Uploads a data buffer that contains a T:System.Byte array to the URI specified as an asynchronous operation using a task object.
address | The URI of the resource to receive the data. |
data | The data buffer to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource. |
Definition at line 3638 of file WebClient.cs.
Task<byte[]> System.Net.WebClient.UploadDataTaskAsync | ( | string | address, |
string | method, | ||
byte [] | data | ||
) |
Uploads a data buffer that contains a T:System.Byte array to the URI specified as an asynchronous operation using a task object.
address | The URI of the resource to receive the data. |
method | The method used to send the data to the resource. If null , the default is POST for http and STOR for ftp. |
data | The data buffer to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource. |
Definition at line 3652 of file WebClient.cs.
Uploads a data buffer that contains a T:System.Byte array to the URI specified as an asynchronous operation using a task object.
address | The URI of the resource to receive the data. |
method | The method used to send the data to the resource. If null , the default is POST for http and STOR for ftp. |
data | The data buffer to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource. |
Definition at line 3666 of file WebClient.cs.
byte [] System.Net.WebClient.UploadFile | ( | string | address, |
string | fileName | ||
) |
Uploads the specified local file to a resource with the specified URI.
address | The URI of the resource to receive the file. For example, ftp://localhost/samplefile.txt. |
fileName | The file to send to the resource. For example, "samplefile.txt". |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid characters, or does not exist.-or- An error occurred while uploading the file.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 1397 of file WebClient.cs.
byte [] System.Net.WebClient.UploadFile | ( | Uri | address, |
string | fileName | ||
) |
Uploads the specified local file to a resource with the specified URI.
address | The URI of the resource to receive the file. For example, ftp://localhost/samplefile.txt. |
fileName | The file to send to the resource. For example, "samplefile.txt". |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid characters, or does not exist.-or- An error occurred while uploading the file.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 1413 of file WebClient.cs.
byte [] System.Net.WebClient.UploadFile | ( | string | address, |
string | method, | ||
string | fileName | ||
) |
Uploads the specified local file to the specified resource, using the specified method.
address | The URI of the resource to receive the file. |
method | The method used to send the file to the resource. If null , the default is POST for http and STOR for ftp. |
fileName | The file to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid characters, or does not exist.-or- An error occurred while uploading the file.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 1426 of file WebClient.cs.
byte [] System.Net.WebClient.UploadFile | ( | Uri | address, |
string | method, | ||
string | fileName | ||
) |
Uploads the specified local file to the specified resource, using the specified method.
address | The URI of the resource to receive the file. |
method | The method used to send the file to the resource. If null , the default is POST for http and STOR for ftp. |
fileName | The file to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid characters, or does not exist.-or- An error occurred while uploading the file.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 1439 of file WebClient.cs.
void System.Net.WebClient.UploadFileAsync | ( | Uri | address, |
string | fileName | ||
) |
Uploads the specified local file to the specified resource, using the POST method. This method does not block the calling thread.
address | The URI of the resource to receive the file. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
fileName | The file to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid character, or the specified path to the file does not exist.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 3078 of file WebClient.cs.
void System.Net.WebClient.UploadFileAsync | ( | Uri | address, |
string | method, | ||
string | fileName | ||
) |
Uploads the specified local file to the specified resource, using the POST method. This method does not block the calling thread.
address | The URI of the resource to receive the file. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
method | The method used to send the data to the resource. If null , the default is POST for http and STOR for ftp. |
fileName | The file to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid character, or the specified path to the file does not exist.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 3091 of file WebClient.cs.
void System.Net.WebClient.UploadFileAsync | ( | Uri | address, |
string | method, | ||
string | fileName, | ||
object | userToken | ||
) |
Uploads the specified local file to the specified resource, using the POST method. This method does not block the calling thread.
address | The URI of the resource to receive the file. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
method | The method used to send the data to the resource. If null , the default is POST for http and STOR for ftp. |
fileName | The file to send to the resource. |
userToken | A user-defined object that is passed to the method invoked when the asynchronous operation completes. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid character, or the specified path to the file does not exist.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 3105 of file WebClient.cs.
Task<byte[]> System.Net.WebClient.UploadFileTaskAsync | ( | string | address, |
string | fileName | ||
) |
Uploads the specified local file to a resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the file. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
fileName | The local file to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid character, or the specified path to the file does not exist.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 3699 of file WebClient.cs.
Uploads the specified local file to a resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the file. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
fileName | The local file to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid character, or the specified path to the file does not exist.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 3713 of file WebClient.cs.
Task<byte[]> System.Net.WebClient.UploadFileTaskAsync | ( | string | address, |
string | method, | ||
string | fileName | ||
) |
Uploads the specified local file to a resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the file. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
method | The method used to send the data to the resource. If null , the default is POST for http and STOR for ftp. |
fileName | The local file to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid character, or the specified path to the file does not exist.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 3728 of file WebClient.cs.
Task<byte[]> System.Net.WebClient.UploadFileTaskAsync | ( | Uri | address, |
string | method, | ||
string | fileName | ||
) |
Uploads the specified local file to a resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the file. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
method | The method used to send the data to the resource. If null , the default is POST for http and STOR for ftp. |
fileName | The local file to send to the resource. |
T:System.ArgumentNullException | The address parameter is null . -or-The fileName parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- fileName is null , is F:System.String.Empty, contains invalid character, or the specified path to the file does not exist.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource.-or- The Content-type header begins with multipart . |
Definition at line 3743 of file WebClient.cs.
string System.Net.WebClient.UploadString | ( | string | address, |
string | data | ||
) |
Uploads the specified string to the specified resource, using the POST method.
address | The URI of the resource to receive the string. For Http resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
data | The string to be uploaded. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- There was no response from the server hosting the resource. |
Definition at line 1643 of file WebClient.cs.
string System.Net.WebClient.UploadString | ( | Uri | address, |
string | data | ||
) |
Uploads the specified string to the specified resource, using the POST method.
address | The URI of the resource to receive the string. For Http resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
data | The string to be uploaded. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- There was no response from the server hosting the resource. |
Definition at line 1658 of file WebClient.cs.
string System.Net.WebClient.UploadString | ( | string | address, |
string | method, | ||
string | data | ||
) |
Uploads the specified string to the specified resource, using the specified method.
address | The URI of the resource to receive the string. This URI must identify a resource that can accept a request sent with the method method. |
method | The HTTP method used to send the string to the resource. If null, the default is POST for http and STOR for ftp. |
data | The string to be uploaded. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- There was no response from the server hosting the resource.-or- method cannot be used to send content. |
Definition at line 1671 of file WebClient.cs.
string System.Net.WebClient.UploadString | ( | Uri | address, |
string | method, | ||
string | data | ||
) |
Uploads the specified string to the specified resource, using the specified method.
address | The URI of the resource to receive the string. This URI must identify a resource that can accept a request sent with the method method. |
method | The HTTP method used to send the string to the resource. If null, the default is POST for http and STOR for ftp. |
data | The string to be uploaded. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- There was no response from the server hosting the resource.-or- method cannot be used to send content. |
Definition at line 1688 of file WebClient.cs.
void System.Net.WebClient.UploadStringAsync | ( | Uri | address, |
string | data | ||
) |
Uploads the specified string to the specified resource. This method does not block the calling thread.
address | The URI of the resource to receive the string. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
data | The string to be uploaded. |
T:System.ArgumentNullException | data is null . |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- There was no response from the server hosting the resource. |
Definition at line 2840 of file WebClient.cs.
void System.Net.WebClient.UploadStringAsync | ( | Uri | address, |
string | method, | ||
string | data | ||
) |
Uploads the specified string to the specified resource. This method does not block the calling thread.
address | The URI of the resource to receive the string. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
method | The HTTP method used to send the file to the resource. If null, the default is POST for http and STOR for ftp. |
data | The string to be uploaded. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- method cannot be used to send content.-or- There was no response from the server hosting the resource. |
Definition at line 2853 of file WebClient.cs.
void System.Net.WebClient.UploadStringAsync | ( | Uri | address, |
string | method, | ||
string | data, | ||
object | userToken | ||
) |
Uploads the specified string to the specified resource. This method does not block the calling thread.
address | The URI of the resource to receive the string. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
method | The HTTP method used to send the file to the resource. If null, the default is POST for http and STOR for ftp. |
data | The string to be uploaded. |
userToken | A user-defined object that is passed to the method invoked when the asynchronous operation completes. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- method cannot be used to send content.-or- There was no response from the server hosting the resource. |
Definition at line 2867 of file WebClient.cs.
Task<string> System.Net.WebClient.UploadStringTaskAsync | ( | string | address, |
string | data | ||
) |
Uploads the specified string to the specified resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the string. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
data | The string to be uploaded. |
T:System.ArgumentNullException | data is null . |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- There was no response from the server hosting the resource. |
Definition at line 3454 of file WebClient.cs.
Uploads the specified string to the specified resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the string. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
data | The string to be uploaded. |
T:System.ArgumentNullException | data is null . |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- There was no response from the server hosting the resource. |
Definition at line 3469 of file WebClient.cs.
Task<string> System.Net.WebClient.UploadStringTaskAsync | ( | string | address, |
string | method, | ||
string | data | ||
) |
Uploads the specified string to the specified resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the string. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
method | The HTTP method used to send the file to the resource. If null, the default is POST for http and STOR for ftp. |
data | The string to be uploaded. |
T:System.ArgumentNullException | data is null . |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- method cannot be used to send content.-or- There was no response from the server hosting the resource. |
Definition at line 3486 of file WebClient.cs.
Uploads the specified string to the specified resource as an asynchronous operation using a task object.
address | The URI of the resource to receive the string. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page. |
method | The HTTP method used to send the file to the resource. If null, the default is POST for http and STOR for ftp. |
data | The string to be uploaded. |
T:System.ArgumentNullException | data is null . |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- method cannot be used to send content.-or- There was no response from the server hosting the resource. |
Definition at line 3503 of file WebClient.cs.
byte [] System.Net.WebClient.UploadValues | ( | string | address, |
NameValueCollection | data | ||
) |
Uploads the specified name/value collection to the resource identified by the specified URI.
address | The URI of the resource to receive the collection. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- data is null .-or- There was no response from the server hosting the resource.-or- An error occurred while opening the stream.-or- The Content-type header is not null or "application/x-www-form-urlencoded". |
Definition at line 1538 of file WebClient.cs.
byte [] System.Net.WebClient.UploadValues | ( | Uri | address, |
NameValueCollection | data | ||
) |
Uploads the specified name/value collection to the resource identified by the specified URI.
address | The URI of the resource to receive the collection. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- data is null .-or- There was no response from the server hosting the resource.-or- An error occurred while opening the stream.-or- The Content-type header is not null or "application/x-www-form-urlencoded". |
Definition at line 1554 of file WebClient.cs.
byte [] System.Net.WebClient.UploadValues | ( | string | address, |
string | method, | ||
NameValueCollection | data | ||
) |
Uploads the specified name/value collection to the resource identified by the specified URI, using the specified method.
address | The URI of the resource to receive the collection. |
method | The HTTP method used to send the file to the resource. If null, the default is POST for http and STOR for ftp. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- data is null .-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource.-or- The Content-type header value is not null and is not application/x-www-form-urlencoded . |
Definition at line 1567 of file WebClient.cs.
byte [] System.Net.WebClient.UploadValues | ( | Uri | address, |
string | method, | ||
NameValueCollection | data | ||
) |
Uploads the specified name/value collection to the resource identified by the specified URI, using the specified method.
address | The URI of the resource to receive the collection. |
method | The HTTP method used to send the file to the resource. If null, the default is POST for http and STOR for ftp. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- data is null .-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource.-or- The Content-type header value is not null and is not application/x-www-form-urlencoded . |
Definition at line 1584 of file WebClient.cs.
void System.Net.WebClient.UploadValuesAsync | ( | Uri | address, |
NameValueCollection | data | ||
) |
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.
address | The URI of the resource to receive the collection. This URI must identify a resource that can accept a request sent with the default method. See remarks. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- There was no response from the server hosting the resource. |
Definition at line 3201 of file WebClient.cs.
void System.Net.WebClient.UploadValuesAsync | ( | Uri | address, |
string | method, | ||
NameValueCollection | data | ||
) |
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.
address | The URI of the resource to receive the collection. This URI must identify a resource that can accept a request sent with the method method. |
method | The method used to send the string to the resource. If null, the default is POST for http and STOR for ftp. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- There was no response from the server hosting the resource.-or- method cannot be used to send content. |
Definition at line 3214 of file WebClient.cs.
void System.Net.WebClient.UploadValuesAsync | ( | Uri | address, |
string | method, | ||
NameValueCollection | data, | ||
object | userToken | ||
) |
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.
address | The URI of the resource to receive the collection. This URI must identify a resource that can accept a request sent with the method method. |
method | The HTTP method used to send the string to the resource. If null, the default is POST for http and STOR for ftp. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
userToken | A user-defined object that is passed to the method invoked when the asynchronous operation completes. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress and address is invalid.-or- There was no response from the server hosting the resource.-or- method cannot be used to send content. |
Definition at line 3228 of file WebClient.cs.
Task<byte[]> System.Net.WebClient.UploadValuesTaskAsync | ( | string | address, |
NameValueCollection | data | ||
) |
Uploads the specified name/value collection to the resource identified by the specified URI as an asynchronous operation using a task object.
address | The URI of the resource to receive the collection. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- There was no response from the server hosting the resource.-or- An error occurred while opening the stream.-or- The Content-type header is not null or "application/x-www-form-urlencoded". |
Definition at line 3775 of file WebClient.cs.
Task<byte[]> System.Net.WebClient.UploadValuesTaskAsync | ( | string | address, |
string | method, | ||
NameValueCollection | data | ||
) |
Uploads the specified name/value collection to the resource identified by the specified URI as an asynchronous operation using a task object.
address | The URI of the resource to receive the collection. |
method | The HTTP method used to send the collection to the resource. If null, the default is POST for http and STOR for ftp. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- method cannot be used to send content.-or- There was no response from the server hosting the resource.-or- An error occurred while opening the stream.-or- The Content-type header is not null or "application/x-www-form-urlencoded". |
Definition at line 3790 of file WebClient.cs.
Task<byte[]> System.Net.WebClient.UploadValuesTaskAsync | ( | Uri | address, |
NameValueCollection | data | ||
) |
Uploads the specified name/value collection to the resource identified by the specified URI as an asynchronous operation using a task object.
address | The URI of the resource to receive the collection. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- An error occurred while opening the stream.-or- There was no response from the server hosting the resource.-or- The Content-type header value is not null and is not application/x-www-form-urlencoded . |
Definition at line 3803 of file WebClient.cs.
Task<byte[]> System.Net.WebClient.UploadValuesTaskAsync | ( | Uri | address, |
string | method, | ||
NameValueCollection | data | ||
) |
Uploads the specified name/value collection to the resource identified by the specified URI as an asynchronous operation using a task object.
address | The URI of the resource to receive the collection. |
method | The HTTP method used to send the collection to the resource. If null, the default is POST for http and STOR for ftp. |
data | The T:System.Collections.Specialized.NameValueCollection to send to the resource. |
T:System.ArgumentNullException | The address parameter is null .-or-The data parameter is null . |
T:System.Net.WebException | The URI formed by combining P:System.Net.WebClient.BaseAddress, and address is invalid.-or- method cannot be used to send content.-or- There was no response from the server hosting the resource.-or- An error occurred while opening the stream.-or- The Content-type header is not null or "application/x-www-form-urlencoded". |
Definition at line 3818 of file WebClient.cs.
bool System.Net.WebClient.IsBusy => m_AsyncOp != null |
Gets whether a Web request is in progress.
true
if the Web request is still in progress; otherwise false
.Definition at line 755 of file WebClient.cs.
|
getset |
Gets or sets a value that indicates whether to buffer the data read from the Internet resource for a T:System.Net.WebClient instance.
true
to enable buffering of the data received from the Internet resource; false
to disable buffering. The default is true
.Definition at line 564 of file WebClient.cs.
|
getset |
Gets or sets a value that indicates whether to buffer the data written to the Internet resource for a T:System.Net.WebClient instance.
true
to enable buffering of the data written to the Internet resource; false
to disable buffering. The default is true
.Definition at line 575 of file WebClient.cs.
|
getset |
Gets or sets the base URI for requests made by a T:System.Net.WebClient.
T:System.ArgumentException | P:System.Net.WebClient.BaseAddress is set to an invalid URI. The inner exception may contain information that will help you locate the error. |
Definition at line 603 of file WebClient.cs.
|
getset |
Gets or sets the application's cache policy for any resources obtained by this WebClient instance using T:System.Net.WebRequest objects.
Definition at line 741 of file WebClient.cs.
|
getset |
Gets or sets the network credentials that are sent to the host and used to authenticate the request.
null
.Definition at line 635 of file WebClient.cs.
|
getset |
Gets and sets the T:System.Text.Encoding used to upload and download strings.
Definition at line 583 of file WebClient.cs.
|
getset |
Gets or sets a collection of header name/value pairs associated with the request.
Definition at line 668 of file WebClient.cs.
|
getset |
Gets or sets the proxy used by this T:System.Net.WebClient object.
T:System.ArgumentNullException | P:System.Net.WebClient.Proxy is set to null . |
Definition at line 720 of file WebClient.cs.
|
getset |
Gets or sets a collection of query name/value pairs associated with the request.
Definition at line 686 of file WebClient.cs.
|
get |
Gets a collection of header name/value pairs associated with the response.
null
if no response has been received.Definition at line 704 of file WebClient.cs.
|
getset |
Gets or sets a T:System.Boolean value that controls whether the P:System.Net.CredentialCache.DefaultCredentials are sent with requests.
true
if the default credentials are used; otherwise false
. The default value is false
.Definition at line 650 of file WebClient.cs.
|
addremove |
Occurs when an asynchronous operation to write data to a resource using a write stream is closed.
Definition at line 761 of file WebClient.cs.
DownloadDataCompletedEventHandler System.Net.WebClient.DownloadDataCompleted |
Occurs when an asynchronous data download operation completes.
Definition at line 780 of file WebClient.cs.
AsyncCompletedEventHandler System.Net.WebClient.DownloadFileCompleted |
Occurs when an asynchronous file download operation completes.
Definition at line 783 of file WebClient.cs.
DownloadProgressChangedEventHandler System.Net.WebClient.DownloadProgressChanged |
Occurs when an asynchronous download operation successfully transfers some or all of the data.
Definition at line 798 of file WebClient.cs.
DownloadStringCompletedEventHandler System.Net.WebClient.DownloadStringCompleted |
Occurs when an asynchronous resource-download operation completes.
Definition at line 777 of file WebClient.cs.
OpenReadCompletedEventHandler System.Net.WebClient.OpenReadCompleted |
Occurs when an asynchronous operation to open a stream containing a resource completes.
Definition at line 771 of file WebClient.cs.
OpenWriteCompletedEventHandler System.Net.WebClient.OpenWriteCompleted |
Occurs when an asynchronous operation to open a stream to write data to a resource completes.
Definition at line 774 of file WebClient.cs.
UploadDataCompletedEventHandler System.Net.WebClient.UploadDataCompleted |
Occurs when an asynchronous data-upload operation completes.
Definition at line 789 of file WebClient.cs.
UploadFileCompletedEventHandler System.Net.WebClient.UploadFileCompleted |
Occurs when an asynchronous file-upload operation completes.
Definition at line 792 of file WebClient.cs.
UploadProgressChangedEventHandler System.Net.WebClient.UploadProgressChanged |
Occurs when an asynchronous upload operation successfully transfers some or all of the data.
Definition at line 801 of file WebClient.cs.
UploadStringCompletedEventHandler System.Net.WebClient.UploadStringCompleted |
Occurs when an asynchronous string-upload operation completes.
Definition at line 786 of file WebClient.cs.
UploadValuesCompletedEventHandler System.Net.WebClient.UploadValuesCompleted |
Occurs when an asynchronous upload of a name/value collection completes.
Definition at line 795 of file WebClient.cs.