C# Class NanoByte.Common.Net.DownloadFile

Downloads a file from a specific internet address to a local file.
Inheritance: DownloadTask
Afficher le fichier Open project: nano-byte/common Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
DownloadFile ( [ source, [ target, long bytesTotal = -1 ) : System

Creates a new download task.

Méthodes protégées

Méthode Description
CreateTargetStream ( ) : Stream

Method Details

CreateTargetStream() protected méthode

protected CreateTargetStream ( ) : Stream
Résultat Stream

DownloadFile() public méthode

Creates a new download task.
public DownloadFile ( [ source, [ target, long bytesTotal = -1 ) : System
source [ The URL the file is to be downloaded from.
target [ The local path to save the file to. A preexisting file will be overwritten.
bytesTotal long The number of bytes the file to be downloaded is long. The file will be rejected if it does not have this length. -1 if the size is unknown.
Résultat System