C# Class NanoByte.Common.Net.DownloadFile

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

Private Properties

Property Type Description

Public Methods

Method Description
DownloadFile ( [ source, [ target, long bytesTotal = -1 ) : System

Creates a new download task.

Protected Methods

Method Description
CreateTargetStream ( ) : Stream

Method Details

CreateTargetStream() protected method

protected CreateTargetStream ( ) : Stream
return Stream

DownloadFile() public method

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.
return System