loader class : DownloadString(string) method
Description
Downloads the resource with the specified URL to a string.
Syntax
loaderInstance.DownloadString(string targetUrl)
Arguments
Class | Name | Description |
string | targetUrl | URL. |
Return value
Class | Description |
string | Downloaded data. |
Sample code
1: | loader loa = new loader(); |
2: | string targetUrl = "http://www..."; |
3: | string downloadData = loa.DownloadString(targetUrl); |
Notes
It's a wrapper of the System.Net.WebClient.DownloadString(String) method.