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.
有没有办法在 Windows Phone 7 应用程序中增加 HttpWebRequest 的超时?!
如果您不是在多线程程序中执行此操作,那么您可以这样做。(C#) 示例。
HttpWebRequest webReq = (HttpWebRequest)HttpWebRequest.Create(url); webReq.Timeout = 7000; HttpWebResponse response = (HttpWebResponse)webReq.GetResponse();