C# Class Channel9Downloader.DataAccess.WebDownloader

Inheritance: IWebDownloader
Show file Open project: MadCowDevelopment/Channel9Downloader Class Usage Examples

Public Methods

Method Description
CancelAsync ( ) : void

Cancels a pending asynchronous operation.

DownloadData ( string address, string filename ) : void

Downloads the resource with the specified URI to a local file.

DownloadFileAsync ( Uri address, string filename ) : void

Downloads a file asynchronously.

DownloadString ( string address ) : string

Downloads the requested resource as a String. The resource to download is specified as a String containing the URI.

DownloadXHTML ( string address ) : System.Xml.Linq.XDocument

Downloads the requested resource as XHTML. The resource to download is specified as a String containing the URI.

WebDownloader ( ) : System

Initializes a new instance of the WebDownloader class.

Private Methods

Method Description
FromHtml ( TextReader reader ) : System.Xml.Linq.XDocument

Returns an XDocument from TextReader that contains HTML.

RaiseDownloadFileCompleted ( AsyncCompletedEventArgs e ) : void

Raises the DownloadFileCompleted event.

RaiseDownloadProgressChanged ( DownloadProgressChangedEventArgs e ) : void

Raises the DownloadProgressChanged event.

Method Details

CancelAsync() public method

Cancels a pending asynchronous operation.
public CancelAsync ( ) : void
return void

DownloadData() public method

Downloads the resource with the specified URI to a local file.
public DownloadData ( string address, string filename ) : void
address string The URI from which to download data.
filename string The name of the local file that is to receive the data.
return void

DownloadFileAsync() public method

Downloads a file asynchronously.
public DownloadFileAsync ( Uri address, string filename ) : void
address System.Uri The address of the resource to download.
filename string The name of the local file that is to receive the data.
return void

DownloadString() public method

Downloads the requested resource as a String. The resource to download is specified as a String containing the URI.
public DownloadString ( string address ) : string
address string The address of the resource to download.
return string

DownloadXHTML() public method

Downloads the requested resource as XHTML. The resource to download is specified as a String containing the URI.
public DownloadXHTML ( string address ) : System.Xml.Linq.XDocument
address string The address of the resource to download.
return System.Xml.Linq.XDocument

WebDownloader() public method

Initializes a new instance of the WebDownloader class.
public WebDownloader ( ) : System
return System