WebClient to HttpClient

StewartBW 1,360 Reputation points
2025-04-18T01:12:54.2933333+00:00

Hi

On Microsoft docs, it's mentioned that WebClient should not be used anymore, and HttpClient is recommended to use, but it does not have DownloadStringAsync and DownloadFileAsync methods, are they somewhere else I can't find?

Thanks.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 88,381 Reputation points
    2025-04-18T07:05:40.5866667+00:00

    It has GetStringAsync or GetAsync

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.