C# Класс Channel9Downloader.DataAccess.WebDownloader

Наследование: IWebDownloader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

CancelAsync() публичный Метод

Cancels a pending asynchronous operation.
public CancelAsync ( ) : void
Результат void

DownloadData() публичный Метод

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.
Результат void

DownloadFileAsync() публичный Метод

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.
Результат void

DownloadString() публичный Метод

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.
Результат string

DownloadXHTML() публичный Метод

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.
Результат System.Xml.Linq.XDocument

WebDownloader() публичный Метод

Initializes a new instance of the WebDownloader class.
public WebDownloader ( ) : System
Результат System