Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从网页中捕获文本?我是否需要获取页面源以及如何获取?
该WebClient对象有一个方法可以为您执行此操作:
WebClient
WebClient client = new WebClient(); string html = client.DownloadString("http://www.google.com");