抓异常,然后重试。简单版
Int count=0;
Int max=5;
Bool success=false;
While(!success && count { Try { // webclient download balabala Sucess=true; } Catch { Count++; } }
{
Try
// webclient download balabala
Sucess=true;
}
Catch
Count++;