标签: c# webclient
当我在计算机离线时使用WebClient对象发出请求时会发生什么?有没有办法事先检测到。或者我应该处理某种例外?
答案 0 :(得分:2)
将抛出WebException。 http://msdn.microsoft.com/en-us/library/system.net.webexception(v=vs.80).aspx