C# Класс NanoByte.Common.Net.DownloadFile

Downloads a file from a specific internet address to a local file.
Наследование: DownloadTask
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

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

Метод Описание
DownloadFile ( [ source, [ target, long bytesTotal = -1 ) : System

Creates a new download task.

Защищенные методы

Метод Описание
CreateTargetStream ( ) : Stream

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

CreateTargetStream() защищенный Метод

protected CreateTargetStream ( ) : Stream
Результат Stream

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

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