What happens when I make a request with a WebClient object when the computer is offline? Is there a way to detect that beforehand. or should I be handling some sort of exception?
A WebException will be thrown. http://msdn.microsoft.com/en-us/library/system.net.webexception(v=vs.80).aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.