C# Class Channel9Downloader.DataAccess.WebDownloader

Inheritance: IWebDownloader
Afficher le fichier Open project: MadCowDevelopment/Channel9Downloader Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Cancels a pending asynchronous operation.
public CancelAsync ( ) : void
Résultat void

DownloadData() public méthode

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.
Résultat void

DownloadFileAsync() public méthode

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.
Résultat void

DownloadString() public méthode

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.
Résultat string

DownloadXHTML() public méthode

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.
Résultat System.Xml.Linq.XDocument

WebDownloader() public méthode

Initializes a new instance of the WebDownloader class.
public WebDownloader ( ) : System
Résultat System