C#中webclient类中,方法downloadfile超时会导致程序挂起吗?
如果是同步的就会挂起,直到超时抛出timeoutexception的异常。
一般不会导致程序挂起
看你有没有放在主线程里了