loader class : DownloadString(string) method

Description

Downloads the resource with the specified URL to a string.

Syntax

loaderInstance.DownloadString(string targetUrl)

Arguments

ClassNameDescription
stringtargetUrlURL.

Return value

ClassDescription
stringDownloaded 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.

Links for reference

Copyright © Cooker All rights reserved.