The main functions of WebClient are as follows:
• Openreadasync opens the readable stream to the specified resource.
• Openwriteasync open a stream to write data to the specified resource. These methods do not block calling threads.
• Downloadstringasync downloads Resources in the specified URI as strings.
• Uploadstringasync uploads a specified string to a specified resource. These methods do not block calling threads.
The main WebClient events are as follows:
• Openreadcompleted occurs when the asynchronous resource read operation is complete.
• Openwritecompleted occurs when a stream is opened to write data to resources asynchronously.
• Downloadstringcompleted occurs when the asynchronous resource download operation is complete.
• Downloadprogresschanged occurs after the asynchronous download operation successfully transfers part or all of the data.
• Uploadstringcompleted occurs when the asynchronous string upload operation is complete.
• Uploadprogresschanged occurs after the asynchronous upload operation successfully converts part or all of the data.