Uploads the specified local file to the specified resource, using the POST method. This method does not block the calling thread.
The file is sent asynchronously using thread resources that are automatically allocated from the thread pool. To receive notification when the file upload completes, add an event handler to the WebClient.UploadFileCompleted event.
This method does not block the calling thread while the file is being sent. To send a file and block while waiting for the server's response, use one of the erload:System.Net.WebClient.UploadFile methods.
Asynchronous operations that have not completed can be canceled using the WebClient.CancelAsync method.
If the WebClient.BaseAddress property is not an empty string (""), address must be a relative URI that is combined with WebClient.BaseAddress to form the absolute URI of the requested data. If the WebClient.QueryString property is not an empty string, it is appended to address.
This method uses the STOR command to upload an FTP resource. For an HTTP resource, the POST method is used.
This member outputs trace information when you enable network tracing in your application. For more information, see Network Tracing.