摘要:
private void button4_Click(object sender, EventArgs e) { int marktime = 0; MyMethod my = method; IAsyncResult asyncResult = my.BeginInvoke(MethodCompleted, my); while (!asyncResult.IsCompleted && marktime < 4) { marktime +=... 阅读全文
摘要:
Public Sub DeownloadFile(ByVal networkfile As String, ByVal locationFileName As String, ByVal PaperDownloadLog As String, ByVal strReferer As String) For index = 1 To 3 '如获取不了重试3次 Dim task As NewTaskDelegate = AddressOf TrytoDownloadFile Dim asyncResult As IAsyncResult = task.BeginInvoke(network 阅读全文