📜  c# 获取url html代码示例

📅  最后修改于: 2022-03-11 14:53:25.231000             🧑  作者: Mango

代码示例1
using System.Net;

using (WebClient web1 = new WebClient())
    string data = web1.DownloadString("URL");
    Console.WriteLine(data);
}