开发者

What happens when a computer is offline and a WebClient makes a request?

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 so开发者_Python百科rt of exception?


A WebException will be thrown. http://msdn.microsoft.com/en-us/library/system.net.webexception(v=vs.80).aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜