DownloadStringAsync wait for request completion

前端 未结 6 1373
感动是毒
感动是毒 2020-12-10 13:41

I am using this code to retrieve an url content:

private ArrayList request(string query)
{
    ArrayList parsed_output = new ArrayList();

    string url = s         


        
6条回答
  •  一向
    一向 (楼主)
    2020-12-10 14:03

    From the msdn documentation:

    When the download completes, the DownloadStringCompleted event is raised.

    When hooking this event, you will receive DownloadStringCompletedEventArgs, this contains a string property Result with the resulting string.

提交回复
热议问题