简体   繁体   English

当计算机脱机并且WebClient发出请求时会发生什么?

[英]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? 当我在计算机脱机时使用WebClient对象发出请求时会发生什么? Is there a way to detect that beforehand. 有没有办法事先检测到。 or should I be handling some sort of exception? 或者我应该处理某种例外?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WinForm应用程序关闭时,未完成的.NET WebClient异步操作会如何处理? - What happens to outstanding .NET WebClient async operations when WinForm app closes? 计算机锁定时WebClient.DownloadFile挂起 - WebClient.DownloadFile hangs when computer is locked HttpClient超时时,在Web API控制器中请求会发生什么? - What happens to request in Web API controller when HttpClient times out? 当请求中止时,IIS / C#中会发生什么 - What happens in IIS/C# when a request is aborted 在未安装.NET4.0的计算机中执行.NET4.0应用程序时会发生什么? - What happens when executing a .NET4.0 app in a computer without .NET4.0 installed? 使用脱机XDocument替换WebClient - Replacing WebClient with offline XDocument 发出 Post 请求时为 WebClient 设置正文 - Set a body for WebClient when making a Post Request 在Web API中发出WebClient请求时返回401 - 401 when issuing a WebClient request in Web API 如果计算机在保留内存映射文件时挂起,会发生什么情况? - What happens if computer hangs while persisting a memory-mapped file? 如果您尝试在具有单核的计算机上使用TPL会发生什么? - What happens if you try to utilize TPL on a computer with a single core?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM